Skip to main content

class Empty<T>

undocumented

Extends: EmptyBase

Implements: List<T>

Type parameters

NameDefaultDescription
Tanyundocumented

Properties

_NonEmptyType

undocumented

Definition

_NonEmptyType: List.NonEmpty<T>;

Overrides

EmptyBase._NonEmptyType

context

undocumented

Definition

readonly context: ListContext;

Overrides

List.context

isEmpty

undocumented

Definition

get isEmpty(): true;

Overrides

EmptyBase.isEmptyList.isEmpty

length

undocumented

Definition

get length(): 0;

Overrides

EmptyBase.lengthList.length

size

undocumented

Definition

get size(): 0;

Overrides

EmptyBase.size

Methods

[Symbol.iterator]

undocumented

append

undocumented

Definition

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

Parameters

NameTypeDescription
valueT

Overrides

List.append

assumeNonEmpty

undocumented

Definition

assumeNonEmpty(): never;

Overrides

EmptyBase.assumeNonEmpty, List.assumeNonEmpty

collect

undocumented

Definition

collect(): any;

Overrides

List.collect

concat

undocumented

Definition

concat<T2>(...sources: ArrayNonEmpty<StreamSource<T2>>): any;

Type parameters

NameDescription
T2

Parameters

NameTypeDescription
sourcesArrayNonEmpty<StreamSource<T2>>

Overrides

List.concat

drop

undocumented

Definition

drop(): this;

Overrides

List.drop

filter

undocumented

Definition

filter(): any;

Overrides

EmptyBase.filter, List.filter

first

undocumented

Definition

first<O>(otherwise?: OptLazy<O>): O;

Type parameters

NameDescription
O

Parameters

NameTypeDescription
otherwiseOptLazy<O>

Overrides

List.first

flatMap

undocumented

Definition

flatMap(): any;

Overrides

List.flatMap

forEach

undocumented

Definition

forEach(): void;

Overrides

EmptyBase.forEach, List.forEach

get

undocumented

Definition

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

Type parameters

NameDescription
O

Parameters

NameTypeDescription
indexnumber
otherwiseOptLazy<O>

Overrides

List.get

insert

undocumented

Definition

insert(index: number, values: StreamSource<T>): any;

Parameters

NameTypeDescription
indexnumber
valuesStreamSource<T>

Overrides

List.insert

last

undocumented

Definition

last<O>(otherwise?: OptLazy<O>): O;

Type parameters

NameDescription
O

Parameters

NameTypeDescription
otherwiseOptLazy<O>

Overrides

List.last

map

undocumented

Definition

map(): any;

Overrides

List.map

mapPure

undocumented

Definition

mapPure(): any;

Overrides

List.mapPure

nonEmpty

undocumented

Definition

nonEmpty(): this is this['_NonEmptyType'];

Overrides

EmptyBase.nonEmpty, List.nonEmpty

padTo

undocumented

Definition

padTo(length: number, fill: any): List<any>;

Parameters

NameTypeDescription
lengthnumber
fillany

Overrides

List.padTo

prepend

undocumented

Definition

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

Parameters

NameTypeDescription
valueT

Overrides

List.prepend

remove

undocumented

Definition

remove(): this;

Overrides

EmptyBase.remove, List.remove

repeat

undocumented

Definition

repeat(): this;

Overrides

List.repeat

reversed

undocumented

Definition

reversed(): this;

Overrides

List.reversed

rotate

undocumented

Definition

rotate(): this;

Overrides

List.rotate

slice

undocumented

Definition

slice(): this;

Overrides

List.slice

sort

undocumented

Definition

sort(): this;

Overrides

List.sort

splice

undocumented

Definition

splice(options: {
    insert?: StreamSource<T>;
  }): any;

Parameters

NameTypeDescription
options{
    insert?: StreamSource<T>;
  }

Overrides

List.splice

stream

undocumented

Definition

stream(): Stream<any>;

Overrides

EmptyBase.stream, List.stream

streamRange

undocumented

Definition

streamRange(): Stream<T>;

Overrides

List.streamRange

structure

undocumented

Definition

structure(): string;

take

undocumented

Definition

take(): this;

Overrides

List.take

toArray

undocumented

Definition

toArray(): [];

Overrides

EmptyBase.toArray, List.toArray

toBuilder

undocumented

Definition

toBuilder(): List.Builder<T>;

Overrides

List.toBuilder

toJSON

undocumented

Definition

toJSON(): ToJSON<any[], this['context']['typeTag']>;

Overrides

List.toJSON

toString

undocumented

Definition

toString(): string;

Overrides

List.toString

updateAt

undocumented

Definition

updateAt(): this;

Overrides

List.updateAt