import { NonLeafTree } from "https://deno.land/x/rimbu@1.0.2/list/custom/implementation/nonleaf/nonleaf-tree.ts";
Constructors
new
NonLeafTree(context: ListContext,
left: NonLeafBlock<T, C>,
right: NonLeafBlock<T, C>,
middle: NonLeaf<T, NonLeafBlock<T, C>> | null,
level: number,
length?,
Methods
_normalize(): NonLeaf<T, C>
append(child: C): NonLeafTree<T, C>
appendMiddle(child: NonLeafBlock<T, C>): NonLeaf<T, NonLeafBlock<T, C>>
concatBlock(other: NonLeafBlock<T, C>): NonLeaf<T, C>
concatTree(other: NonLeafTree<T, C>): NonLeaf<T, C>
copy(): NonLeafTree<T, C>
left?,
right?,
middle?,
copy2<T2, C2 extends Block<T2, C2>>(): NonLeafTree<T2, C2>
left: NonLeafBlock<T2, C2>,
right: NonLeafBlock<T2, C2>,
middle: NonLeaf<T2, NonLeafBlock<T2, C2>> | null,
createNonLeafBuilder(): NonLeafBuilder<T, BlockBuilder<T, unknown>>
dropInternal(amount: number): [NonLeaf<T, C> | null, C, number]
forEach(f: () => void, state: TraverseState): void
getChildLength(child: C): number
map<T2>(): NonLeafTree<T2, any>
mapPure<T2>(): NonLeafTree<T2, any>
prepend(child: C): NonLeafTree<T, C>
prependMiddle(child: NonLeafBlock<T, C>): NonLeaf<T, NonLeafBlock<T, C>>
reversed(cacheMap?): NonLeafTree<T, C>
streamRange(range: IndexRange, reversed?): Stream<T>
structure(): string
takeInternal(amount: number): [NonLeaf<T, C> | null, C, number]
toArray(range?: IndexRange, reversed?): T[] | any