Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion TypedFastBitSet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ declare class TypedFastBitSet {
/** If the value was not in the set, add it, otherwise remove it (flip bit at `index`) */
flip(index: number): void;

/** Return an array with the set bit locations (values) */
/** Call a function with the set bit locations (values) */
forEach(fnc: (index: number) => void): void;

/** Iterate over the set bit locations */
*[Symbol.iterator](): IterableIterator[number];

/** fast function to compute the Hamming weight of a 32-bit unsigned integer */
hammingWeight(v: number): number;

Expand Down