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

x/rimbu/list/custom/implementation/tree/interface.ts>Tree

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

Type Parameters

T
TS extends Tree<T, TS, TB, C>
TB extends Block<T, TB, C>
C

Properties

readonly
context: ListContext
readonly
left: TB
readonly
middle: NonLeaf<T, TB> | null
readonly
right: TB
readonly
length: number

Methods

copy(
left?: TB,
right?: TB,
middle?: NonLeaf<T, TB> | null,
): TS
prependMiddle(child: TB): NonLeaf<T, TB>
appendMiddle(child: TB): NonLeaf<T, TB>
getChildLength(child: C): number