import { ListContext } from "https://deno.land/x/rimbu@0.14.0/list/custom/index.ts";
Properties
readonly
_empty: List<any>readonly
builder: <T>() => GenBuilder<T>readonly
empty: <T>() => List<T>readonly
from: <T>(...sources: ArrayNonEmpty<StreamSource<T>>) => anyreadonly
fromString: (...sources: ArrayNonEmpty<string>) => anyreadonly
of: <T>(...values: ArrayNonEmpty<T>) => List.NonEmpty<T>readonly
reducer: <T>(source?: StreamSource<T>) => Reducer<T, List<T>>Methods
createBuilder<T>(source?: List<T>): GenBuilder<T>
isLeafBlock<T>(obj: List<T> | Block<T>): obj is LeafBlock<T>
isLeafBlockBuilder<T>(obj: LeafBuilder<T>): obj is LeafBlockBuilder<T>
isLeafTree<T>(obj: List<T>): obj is LeafTree<T>
isLeafTreeBuilder<T>(obj: LeafBuilder<T>): obj is LeafTreeBuilder<T>
isNonLeafBlock<T>(obj: List<T> | Block<T> | NonLeaf<T>): obj is NonLeafBlock<T, any>
isNonLeafBlockBuilder<T>(obj: NonLeafBuilder<T, any>): obj is NonLeafBlockBuilder<T, any>
isNonLeafTree<T>(obj: NonLeaf<T>): obj is NonLeafTree<T, any>
isReversedLeafBlock<T>(obj: List<T> | Block<T>): obj is ReversedLeafBlock<T>
leafBlockBuilder<T>(children: T[]): LeafBlockBuilder<T>
leafBlockBuilderSource<T>(source: LeafBlock<T>): LeafBlockBuilder<T>
leafTreeBuilder<T>(): LeafTreeBuilder<T>
left: LeafBlockBuilder<T>,
right: LeafBlockBuilder<T>,
middle?: NonLeafBuilder<T, LeafBlockBuilder<T>>,
length?: number,
leafTreeBuilderSource<T>(source: LeafTree<T>): LeafTreeBuilder<T>
nonLeafBlock<T, C extends Block<T, C>>(): NonLeafBlock<T, C>
length: number,
children: readonly C[],
level: number,
nonLeafBlockBuilder<T, C extends BlockBuilder<T>>(): NonLeafBlockBuilder<T, C>
level: number,
children: C[],
length: number,
nonLeafBlockBuilderSource<T, C extends BlockBuilder<T>>(source: NonLeafBlock<T, any>): NonLeafBlockBuilder<T, C>
nonLeafTree<T, C extends Block<T, C>>(): NonLeafTree<T, C>
left: NonLeafBlock<T, C>,
right: NonLeafBlock<T, C>,
middle: NonLeaf<T, NonLeafBlock<T, C>> | null,
level: number,
nonLeafTreeBuilder<T, C extends BlockBuilder<T>>(): NonLeafTreeBuilder<T, C>
level: number,
left: NonLeafBlockBuilder<T, C>,
right: NonLeafBlockBuilder<T, C>,
middle?: NonLeafBuilder<T, NonLeafBlockBuilder<T, C>>,
length?: number,
nonLeafTreeBuilderSource<T, C extends BlockBuilder<T>>(source: NonLeafTree<T, any>): NonLeafTreeBuilder<T, C>
reversedLeaf<T>(children: readonly T[]): ReversedLeafBlock<T>