Class DeterministicSet<T>
Constructors
constructor
- new DeterministicSet<T>(compareFn): DeterministicSet<T>
Parameters
- compareFn: ((a: T, b: T) => number)
- (a, b): number
Returns number
Accessors
size
- get size(): number
Returns number
Methods
[iterator]
- [iterator](): IterableIterator<T, any, any>
Returns IterableIterator<T, any, any>
add
- add(value): void
Returns void
clear
- clear(): void
Returns void
delete
- delete(value): boolean
Returns boolean
forEach
- forEach(callback): void
Returns void
has
- has(value): boolean
Returns boolean
Static
fromSet
- fromSet<T>(set, compareFn): DeterministicSet<T>
Parameters
- set: Set<T>
- compareFn: ((a: T, b: T) => number)
- (a, b): number
Returns number