UNPKG

465 BTypeScriptView Raw
1import { AbstractSet } from "../interface/AbstractSet";
2export declare class ArraySet<T> extends AbstractSet<T> {
3 private set;
4 private count;
5 constructor();
6 readonly Size: number;
7 has(item: T): boolean;
8 findIndex(item: T): number;
9 add(item: T): this;
10 entries(): Array<T>;
11 remove(item: T): boolean;
12 union(set: AbstractSet<T>): Array<T>;
13 intersect(set: AbstractSet<T>): Array<T>;
14 diff(set: AbstractSet<T>): Array<T>;
15}