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

x/rimbu/list/custom/builder/nonleaf/tree-builder.ts>NonLeafTreeBuilder

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class NonLeafTreeBuilder
implements BuilderBase<T, C>
extends TreeBuilderBase<T, C>
import { NonLeafTreeBuilder } from "https://deno.land/x/rimbu@0.14.0/list/custom/builder/nonleaf/tree-builder.ts";

Constructors

new
NonLeafTreeBuilder(
context: ListContext,
level: number,
source?: NonLeafTree<T, any>,
_right?: NonLeafBlockBuilder<T, C>,
length?,
)

Methods

buildMap<T2>(f: (value: T) => T2): NonLeafTree<T2, any>
first(): C
get<O>(index: number, otherwise?: OptLazy<O>): T | O
getChildLength(child: C): number
last(): C
modifyFirstChild(f: (child: C) => number | undefined): number | undefined
modifyLastChild(f: (child: C) => number | undefined): number | undefined