Skip to main content

class ReversedLeafBlock<T>

undocumented

Extends: LeafBlock<T>

Type parameters

NameDescription
Tundocumented

Properties

canAddChild

undocumented

Definition

get canAddChild(): boolean;

Overrides

Block.canAddChildLeafBlock.canAddChild

children

undocumented

Definition

readonly children: readonly T[];

Overrides

Block.childrenLeafBlock.children

childrenInMax

undocumented

Definition

get childrenInMax(): boolean;

Overrides

LeafBlock.childrenInMax

childrenInMin

undocumented

Definition

get childrenInMin(): boolean;

Overrides

Block.childrenInMinLeafBlock.childrenInMin

context

undocumented

Definition

readonly context: ListContext;

Overrides

LeafBlock.context

length

undocumented

Definition

get length(): number;

Overrides

Block.lengthLeafBlock.length

level

undocumented

Definition

get level(): 0;

Overrides

LeafBlock.level

mutateChildren

undocumented

Definition

get mutateChildren(): T[];

Overrides

LeafBlock.mutateChildren

Methods

_mutateNormalize

undocumented

Definition

_mutateNormalize(): List.NonEmpty<T>;

Overrides

LeafBlock._mutateNormalize

_mutateSplitRight

undocumented

Definition

_mutateSplitRight(childIndex?: number): LeafBlock<T>;

Parameters

NameTypeDescription
childIndexnumber

Overrides

LeafBlock._mutateSplitRight

append

undocumented

Definition

append(value: T): List.NonEmpty<T>;

Parameters

NameTypeDescription
valueT

Overrides

LeafBlock.append

appendInternal

undocumented

Definition

appendInternal(value: T): LeafBlock<T>;

Parameters

NameTypeDescription
valueT

Overrides

LeafBlock.appendInternal

concat

undocumented

Definition

concat<T2>(...sources: ArrayNonEmpty<StreamSource<T2>>): List.NonEmpty<T | T2>;

Type parameters

NameDescription
T2

Parameters

NameTypeDescription
sourcesArrayNonEmpty<StreamSource<T2>>

Overrides

LeafBlock.concat

concatBlock

undocumented

Definition

concatBlock(other: LeafBlock<T>): List.NonEmpty<T>;

Parameters

NameTypeDescription
otherLeafBlock<T>

Overrides

LeafBlock.concatBlock

concatChildren

undocumented

Definition

concatChildren(other: LeafBlock<T>): LeafBlock<T>;

Parameters

NameTypeDescription
otherLeafBlock<T>

Overrides

LeafBlock.concatChildren

concatTree

undocumented

Definition

concatTree(other: LeafTree<T>): LeafTree<T>;

Parameters

NameTypeDescription
otherLeafTree<T>

Overrides

LeafBlock.concatTree

copy

undocumented

Definition

copy(children: readonly T[]): LeafBlock<T>;

Parameters

NameTypeDescription
childrenreadonly T[]

Overrides

LeafBlock.copy

copy2

undocumented

Definition

copy2<T2>(children: readonly T2[]): LeafBlock<T2>;

Type parameters

NameDescription
T2

Parameters

NameTypeDescription
childrenreadonly T2[]

Overrides

LeafBlock.copy2

createBlockBuilder

undocumented

Definition

createBlockBuilder(): BlockBuilder<T, any>;

Overrides

Block.createBlockBuilder, LeafBlock.createBlockBuilder

drop

undocumented

Definition

drop(amount: number): List<T>;

Parameters

NameTypeDescription
amountnumber

Overrides

LeafBlock.drop

dropChildren

undocumented

Definition

dropChildren(childAmount: number): LeafBlock<T>;

Parameters

NameTypeDescription
childAmountnumber

Overrides

LeafBlock.dropChildren

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;
  }

Overrides

Block.forEach, LeafBlock.forEach

get

undocumented

Definition

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

Type parameters

NameDescription
O

Parameters

NameTypeDescription
indexnumber
otherwiseOptLazy<O>

Overrides

LeafBlock.get

map

undocumented

Definition

map<T2>(mapFun: (value: T, index: number) => T2, options?: {
    reversed?: boolean;
    indexOffset?: number;
  }): LeafBlock<T2>;

Type parameters

NameDescription
T2

Parameters

NameTypeDescription
mapFun(value: T, index: number) => T2
options{
    reversed?: boolean;
    indexOffset?: number;
  }

Overrides

LeafBlock.map

mapPure

undocumented

Definition

mapPure<T2>(mapFun: (value: T) => T2, options?: {
    reversed?: boolean;
    cacheMap?: CacheMap;
  }): LeafBlock<T2>;

Type parameters

NameDescription
T2

Parameters

NameTypeDescription
mapFun(value: T) => T2
options{
    reversed?: boolean;
    cacheMap?: CacheMap;
  }

Overrides

Block.mapPure, LeafBlock.mapPure

prepend

undocumented

Definition

prepend(value: T): List.NonEmpty<T>;

Parameters

NameTypeDescription
valueT

Overrides

LeafBlock.prepend

prependInternal

undocumented

Definition

prependInternal(value: T): LeafBlock<T>;

Parameters

NameTypeDescription
valueT

Overrides

LeafBlock.prependInternal

reversed

undocumented

Definition

reversed(cacheMap?: CacheMap): LeafBlock<T>;

Parameters

NameTypeDescription
cacheMapCacheMap

Overrides

LeafBlock.reversed

stream

undocumented

Definition

stream(options?: {
    reversed?: boolean;
  }): Stream.NonEmpty<T>;

Parameters

NameTypeDescription
options{
    reversed?: boolean;
  }

Overrides

LeafBlock.stream

streamRange

undocumented

Definition

streamRange(range: IndexRange, options?: {
    reversed?: boolean;
  }): Stream<T>;

Parameters

NameTypeDescription
rangeIndexRange
options{
    reversed?: boolean;
  }

Overrides

LeafBlock.streamRange

structure

undocumented

Definition

structure(): string;

Overrides

LeafBlock.structure

take

undocumented

Definition

take(amount: number): List<T> | any;

Parameters

NameTypeDescription
amountnumber

Overrides

LeafBlock.take

takeChildren

undocumented

Definition

takeChildren(childAmount: number): LeafBlock<T>;

Parameters

NameTypeDescription
childAmountnumber

Overrides

LeafBlock.takeChildren

toArray

undocumented

Definition

toArray(options?: {
    range?: IndexRange | undefined;
    reversed?: boolean;
  }): T[] | any;

Parameters

NameTypeDescription
options{
    range?: IndexRange | undefined;
    reversed?: boolean;
  }

Overrides

LeafBlock.toArray

updateAt

undocumented

Definition

updateAt(index: number, update: Update<T>): LeafBlock<T>;

Parameters

NameTypeDescription
indexnumber
updateUpdate<T>

Overrides

LeafBlock.updateAt