Skip to main content

interface BuilderBase<T,C>

undocumented

Implemented by: NonLeafTreeBuilder<T,C>, LeafBuilder<T>, BlockBuilder<T,C>

Type parameters

NameDefaultDescription
Tundocumented
Cunknownundocumented

Properties

length

undocumented

Definition

readonly length: number;

Methods

append

undocumented

Definition

append(value: C): void;

Parameters

NameTypeDescription
valueC

build

undocumented

Definition

build(): List<T> | NonLeaf<T>;

buildMap

undocumented

Definition

buildMap<T2>(f: (value: T) => T2): List<T2> | NonLeaf<T2>;

Type parameters

NameDescription
T2

Parameters

NameTypeDescription
f(value: T) => T2

get

undocumented

Definition

get<O>(index: number, otherwise?: OptLazy<O>): T | O;

Type parameters

NameDescription
O

Parameters

NameTypeDescription
indexnumber
otherwiseOptLazy<O>

insert

undocumented

Definition

insert(index: number, value: T): void;

Parameters

NameTypeDescription
indexnumber
valueT

prepend

undocumented

Definition

prepend(value: C): void;

Parameters

NameTypeDescription
valueC

remove

undocumented

Definition

remove(index: number): T;

Parameters

NameTypeDescription
indexnumber