Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/hashed/set-custom/index.ts>HashSetBlock

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class HashSetBlock
Re-export
import { HashSetBlock } from "https://deno.land/x/rimbu@1.1.0/hashed/set-custom/index.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
, options?: { 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>