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