Skip to main content

class GenBuilder<T>

undocumented

Type parameters

NameDescription
Tundocumented

Properties

_lock

undocumented

Definition

_lock: number;

append

undocumented

Definition

append: (value: T) => void;

appendAll

undocumented

Definition

appendAll: (values: StreamSource<T>) => void;

build

undocumented

Definition

build: () => List<T>;

builder

undocumented

Definition

builder?: LeafBuilder<T> | undefined;

buildMap

undocumented

Definition

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

context

undocumented

Definition

readonly context: ListContext;

forEach

undocumented

Definition

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

get

undocumented

Definition

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

insert

undocumented

Definition

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

isEmpty

undocumented

Definition

get isEmpty(): boolean;

length

undocumented

Definition

get length(): number;

prepend

undocumented

Definition

prepend: (value: T) => void;

remove

undocumented

Definition

remove: <O>(index: number, otherwise?: OptLazy<O> |undefined) => T| O;

set

undocumented

Definition

set: <O>(index: number, value: T, otherwise?: OptLazy<O> |undefined) => T| O;

updateAt

undocumented

Definition

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

Methods

appendArray

undocumented

Definition

appendArray(array: T[]): void;

Parameters

NameTypeDescription
arrayT[]

appendFullOrLastWindow

undocumented

Definition

appendFullOrLastWindow(window: T[]): void;

Parameters

NameTypeDescription
windowT[]

checkLock

undocumented

Definition

checkLock(): void;