Skip to main content
Module

x/rimbu/sorted/common/index.ts>SortedBuilder

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Latest
class SortedBuilder
Abstract
import { SortedBuilder } from "https://deno.land/x/rimbu@1.2.1/sorted/common/index.ts";

Properties

abstract
optional
_children: undefined | SortedBuilder<E>[]
abstract
optional
_entries: undefined | E[]
_lock: number
abstract
children: SortedBuilder<E>[]
abstract
readonly
context: { minEntries: number; maxEntries: number; }
entries: E[]
readonly
hasChildren: boolean
readonly
isEmpty: boolean
abstract
size: number
abstract
optional
source: undefined | { min<O>(otherwise?: OptLazy<O>): E | O; max<O>(otherwise?: OptLazy<O>): E | O; getAtIndex<O>(index: number, otherwise?: OptLazy<O>): E | O; forEach(f: (
entry: E,
index: number,
halt: () => void,
) => void
, options?: { state?: TraverseState; }
): void; }

Methods

checkLock(): void
abstract
createNew(
source?: undefined | unknown,
entries?: undefined | E[],
children?: undefined | SortedBuilder<E>[],
size?: undefined | number,
): SortedBuilder<E>
forEach(f: (
entry: E,
index: number,
halt: () => void,
) => void
, options?: { state?: TraverseState; }
): void
getAtIndex<O>(index: number, otherwise?: OptLazy<O>): E | O
max<O>(otherwise?: OptLazy<O>): E | O
min<O>(otherwise?: OptLazy<O>): E | O
normalize(): void
normalizeChildDecrease(childIndex: number): void
normalizeChildIncrease(childIndex: number): void
abstract
prepareMutate(): void