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

x/rimbu/list/custom/builder/leaf/tree-builder.ts>LeafTreeBuilder

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

Constructors

new
LeafTreeBuilder(
context: ListContext,
source?: LeafTree<T>,
_right?: LeafBlockBuilder<T>,
length?,
)

Properties

readonly
level: 0
middle: NonLeafBuilder<T, LeafBlockBuilder<T>> | undefined

Methods

appendChildren(children: T[], from: number): void
buildMap<T2>(f: (value: T) => T2): LeafTree<T2>
get<O>(index: number, otherwise?: OptLazy<O>): T | O