Skip to main content

interface LeafBuilder<T>

undocumented

Extends: BuilderBase<T,C>

Implemented by: LeafTreeBuilder<T>, LeafBlockBuilder<T>

Type parameters

NameDescription
Tundocumented

Properties

length

undocumented

Definition

readonly length: number;

Overrides

BuilderBase.length

Methods

append

undocumented

Definition

append(value: C): void;

Parameters

NameTypeDescription
valueC

Overrides

BuilderBase.append

build

undocumented

Definition

build(): List<T>;

Overrides

BuilderBase.build

buildMap

undocumented

Definition

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

Type parameters

NameDescription
T2

Parameters

NameTypeDescription
f(value: T) => T2

Overrides

BuilderBase.buildMap

forEach

undocumented

Definition

forEach(f: (value: T, index: number, halt: () => void) => void, options?: {
    reversed?: boolean;
    state?: TraverseState;
  }): void;

Parameters

NameTypeDescription
f(value: T, index: number, halt: () => void) => void
options{
    reversed?: boolean;
    state?: TraverseState;
  }

get

undocumented

Definition

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

Type parameters

NameDescription
O

Parameters

NameTypeDescription
indexnumber
otherwiseOptLazy<O>

Overrides

BuilderBase.get

insert

undocumented

Definition

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

Parameters

NameTypeDescription
indexnumber
valueT

Overrides

BuilderBase.insert

normalized

undocumented

Definition

normalized(): LeafBuilder<T> | undefined;

prepend

undocumented

Definition

prepend(value: C): void;

Parameters

NameTypeDescription
valueC

Overrides

BuilderBase.prepend

remove

undocumented

Definition

remove(index: number): T;

Parameters

NameTypeDescription
indexnumber

Overrides

BuilderBase.remove

updateAt

undocumented

Definition

updateAt<O>(index: number, update: Update<T>, otherwise?: OptLazy<O>): T | O;

Type parameters

NameDescription
O

Parameters

NameTypeDescription
indexnumber
updateUpdate<T>
otherwiseOptLazy<O>