Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/hashed/set-custom/implementation/immutable.ts>HashSetBlock

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class HashSetBlock
import { HashSetBlock } from "https://deno.land/x/rimbu@1.0.3/hashed/set-custom/implementation/immutable.ts";

Constructors

new
HashSetBlock(
context: HashSetContext<T>,
entries: readonly T[] | null,
entrySets: readonly SetEntrySet<T>[] | null,
size: number,
level: number,
)

Methods

add(value: T, hash?): HashSetBlock<T>
copy(
entries?,
entrySets?,
size?,
): HashSetBlock<T>
forEach(f: (
entry: T,
index: number,
halt: () => void,
) => void
, state?: TraverseState
): void
has<U>(value: RelatedTo<T, U>, inHash?: number): boolean
remove<U>(value: RelatedTo<T, U>, hash?: number): HashSet<T>
stream(): Stream.NonEmpty<T>