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

x/rimbu/ordered/set-custom/implementation/builder.ts>OrderedSetBuilder

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

Constructors

new
OrderedSetBuilder(context: TpG["context"], source?: TpG["nonEmpty"])

Type Parameters

T
optional
Tp extends OrderedSetTypes = OrderedSetTypes
optional
TpG extends WithElem<Tp, T> = WithElem<Tp, T>

Properties

_lock: number
optional
_orderBuilder: List.Builder<T>
optional
_setBuilder: TpG["sourceBuilder"]
add: (value: T) => boolean
addAll: (source: StreamSource<T>) => boolean
build: () => TpG["normal"]
forEach: (f: (
value: T,
index: number,
halt: () => void,
) => void
, state?: TraverseState
) => void
has: <U>(value: RelatedTo<T, U>) => boolean
readonly
isEmpty: boolean
readonly
orderBuilder: List.Builder<T>
remove: <U>(value: RelatedTo<T, U>) => boolean
removeAll: <U>(values: StreamSource<RelatedTo<T, U>>) => boolean
readonly
setBuilder: TpG["sourceBuilder"]
readonly
size: number