UNPKG

@memlab/core

Version:
25 lines 765 B
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @lightSyntaxTransform * @oncall memory_lab */ export default class NumericSet implements Iterable<number> { private shards; private _size; private shardCapacity; constructor(iterable?: Iterable<number>); private getShardKey; add(value: number): this; has(value: number): boolean; delete(value: number): boolean; get size(): number; forEach(callback: (value: number, value2: number, set: NumericSet) => void): void; clear(): void; [Symbol.iterator](): Iterator<number>; } //# sourceMappingURL=NumericSet.d.ts.map