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

x/rimbu/list/custom/builder/tree/tree-builder.ts>TreeBuilderBase

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class TreeBuilderBase
Abstract
import { TreeBuilderBase } from "https://deno.land/x/rimbu@1.0.0/list/custom/builder/tree/tree-builder.ts";

Properties

abstract
readonly
context: ListContext
abstract
left: BlockBuilder<T, C>
abstract
length: number
abstract
readonly
level: number
abstract
middle: NonLeafBuilder<T, BlockBuilder<T, C>> | undefined
abstract
right: BlockBuilder<T, C>

Methods

append(child: C): void
appendMiddle(child: BlockBuilder<T, C>): void
forEach(f: (
value: T,
index: number,
halt: () => void,
) => void
, state?: TraverseState
): void
get<O>(index: number, otherwise?: OptLazy<O>): T | O
abstract
getChildLength(child: C): number
insert(index: number, value: T): void
prepend(child: C): void
prependMiddle(child: BlockBuilder<T, C>): void
remove(index: number): T
updateAt<O>(
index: number,
update: Update<T>,
otherwise?: OptLazy<O>,
): T | O