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

x/rimbu/hashed/set-custom/implementation/builder.ts>HashSetBlockBuilder

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class HashSetBlockBuilder
implements [HashSet.Builder]<T>
import { HashSetBlockBuilder } from "https://deno.land/x/rimbu@1.0.4/hashed/set-custom/implementation/builder.ts";

Constructors

new
HashSetBlockBuilder(
context: HashSetContext<T>,
source?: undefined | HashSetBlock<T>,
_entries?: undefined | T[],
_entrySets?: undefined | SetBlockBuilderEntry<T>[],
size?,
level?,
)

Properties

_lock: number
add: (value: T) => boolean
addAll: (source: StreamSource<T>) => boolean
build: () => HashSet<T>
readonly
entries: T[]
readonly
entrySets: SetBlockBuilderEntry<T>[]
forEach: (f: (
value: T,
index: number,
halt: () => void,
) => void
, state?: TraverseState
) => void
has: <U>(value: RelatedTo<T, U>) => boolean
remove: <ST>(value: ST) => boolean
removeAll: <ST>(values: StreamSource<ST>) => boolean

Methods

addInternal(value: T, hash?): boolean
checkLock(): void
hasInternal(value: T, hash?): boolean
removeInternal(value: T, hash?): boolean