Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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@1.0.0/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