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>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>
Re-export
import { HashSetBlockBuilder } from "https://deno.land/x/rimbu@1.2.0/hashed/set-custom/index.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
, options?: { 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