Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/list/custom/index.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>
Re-export
import { NonLeafTreeBuilder } from "https://deno.land/x/rimbu@1.0.0/list/custom/index.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