import { NonLeafTreeBuilder } from "https://deno.land/x/rimbu@1.0.2/list/custom/builder/nonleaf/tree-builder.ts";
Constructors
new
NonLeafTreeBuilder(context: ListContext,
level: number,
source?: NonLeafTree<T, any>,
_left?: NonLeafBlockBuilder<T, C>,
_right?: NonLeafBlockBuilder<T, C>,
_middle?: NonLeafBuilder<T, NonLeafBlockBuilder<T, C>>,
length?,
Type Parameters
C extends BlockBuilder<T>
Properties
left: NonLeafBlockBuilder<T, C>
middle: NonLeafBuilder<T, NonLeafBlockBuilder<T, C>> | undefined
right: NonLeafBlockBuilder<T, C>
Methods
build(): NonLeafTree<T, any>
buildMap<T2>(f: (value: T) => T2): NonLeafTree<T2, any>
getChildLength(child: C): number
modifyFirstChild(f: (child: C) => number | undefined): number | undefined
modifyLastChild(f: (child: C) => number | undefined): number | undefined
normalized(): NonLeafBuilder<T, C>
prepareMutate(): void