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

x/rimbu/sorted/set-custom/implementation/builder.ts>SortedSetBuilder

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

Constructors

new
SortedSetBuilder(
context: SortedSetContext<T>,
source?: undefined | SortedSet<T>,
_entries?: undefined | T[],
_children?: undefined | SortedSetBuilder<T>[],
size?,
)

Properties

add: (value: T) => boolean
addAll: (source: StreamSource<T>) => boolean
build: () => SortedSet<T>
children: SortedSetBuilder<T>[]
has: <U>(value: RelatedTo<T, U>) => boolean
remove: <U>(value: RelatedTo<T, U>) => boolean
removeAll: <U>(values: StreamSource<RelatedTo<T, U>>) => boolean

Methods

addInternal(value: T): boolean
createNew(
source?: undefined | SortedSet<T>,
entries?: undefined | T[],
children?: undefined | SortedSetBuilder<T>[],
size?: undefined | number,
): SortedSetBuilder<T>
removeInternal(value: T): boolean