Skip to content

Commit

Permalink
fully implemented gs:sets module
Browse files Browse the repository at this point in the history
  • Loading branch information
aName2050 authored May 8, 2024
1 parent 58bc0ec commit 256156a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .gsmodules/set.g
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ export class Set {
}

public has(v) {
let hasValue = false;

for (let i = 0; i < )
return Array.has(this.arr, v);
}

public getAll() {
Expand Down
3 changes: 3 additions & 0 deletions tests/main.g
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ set.add(3)
set.add(4)

print(set.getAll())

print(set.has(3))
print(set.has(5))

0 comments on commit 256156a

Please sign in to comment.