import { NonLeafTree } from "https://deno.land/x/rimbu@1.2.0/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, options: { reversed: boolean; state: TraverseState; }): void
getChildLength(child: C): number
map<T2>(mapFun: (value: T, index: number) => T2, options?: { reversed?: boolean; indexOffset?: number; }): NonLeafTree<T2, any>
mapPure<T2>(mapFun: (value: T) => T2, options?: { reversed?: boolean; cacheMap?: CacheMap; }): 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, options?: { reversed?: boolean; }): Stream<T>
structure(): string
takeInternal(amount: number): [NonLeaf<T, C> | null, C, number]
toArray(options?: { range?: IndexRange | undefined; reversed?: boolean; }): T[] | any