Skip to main content

class OrderedSetNonEmpty<T,Tp,TpG>

undocumented

Extends: NonEmptyBase<E>

Implements: OrderedSetBase.NonEmpty<T,Tp>

Type parameters

NameConstraintsDefaultDescription
Tundocumented
TpOrderedSetTypesundocumented
TpGWithElem<Tp, T> WithElem<Tp, T>undocumented

Properties

context

undocumented

Definition

readonly context: WithElem<Tp, T>['context'];

Overrides

RSetBase.context

isEmpty

undocumented

Definition

get isEmpty(): false;

Overrides

NonEmptyBase.isEmptyNonEmpty.isEmpty

order

undocumented

Definition

readonly order: List.NonEmpty<T>;

Overrides

NonEmpty.order

size

undocumented

Definition

get size(): number;

Overrides

VariantSetBase.size

sourceSet

undocumented

Definition

readonly sourceSet: TpG['sourceSetNonEmpty'];

Overrides

NonEmpty.sourceSet

Methods

[Symbol.iterator]

undocumented

add

undocumented

Definition

add(value: T): TpG['nonEmpty'];

Parameters

NameTypeDescription
valueT

Overrides

NonEmpty.add

addAll

undocumented

Definition

addAll(values: StreamSource<T>): TpG['nonEmpty'];

Parameters

NameTypeDescription
valuesStreamSource<T>

Overrides

NonEmpty.addAll

asNormal

undocumented

Definition

asNormal(): any;

Overrides

NonEmptyBase.asNormal, NonEmpty.asNormal

assumeNonEmpty

undocumented

Definition

assumeNonEmpty(): any;

Overrides

NonEmptyBase.assumeNonEmpty, NonEmpty.assumeNonEmpty

copy

undocumented

Definition

copy(order?: List.NonEmpty<T>, sourceSet?: TpG["sourceSetNonEmpty"]): TpG['nonEmpty'];

Parameters

NameTypeDescription
orderList.NonEmpty<T>
sourceSetTpG["sourceSetNonEmpty"]

difference

undocumented

Definition

difference(other: StreamSource<T>): TpG['normal'];

Parameters

NameTypeDescription
otherStreamSource<T>

Overrides

VariantSetBase.difference

filter

undocumented

Definition

filter(pred: (value: T, index: number, halt: () => void) => boolean): TpG['normal'];

Parameters

NameTypeDescription
pred(value: T, index: number, halt: () => void) => boolean

Overrides

VariantSetBase.filter

forEach

undocumented

Definition

forEach(f: (value: T, index: number, halt: () => void) => void, state?: TraverseState): void;

Parameters

NameTypeDescription
f(value: T, index: number, halt: () => void) => void
stateTraverseState

Overrides

VariantSetBase.forEach

has

undocumented

Definition

has<U>(value: RelatedTo<T, U>): boolean;

Type parameters

NameDescription
U

Parameters

NameTypeDescription
valueRelatedTo<T, U>

Overrides

VariantSetBase.has

intersect

undocumented

Definition

intersect(other: StreamSource<T>): TpG['normal'];

Parameters

NameTypeDescription
otherStreamSource<T>

Overrides

VariantSetBase.intersect

nonEmpty

undocumented

Definition

nonEmpty(): true;

Overrides

NonEmptyBase.nonEmpty, NonEmpty.nonEmpty

remove

undocumented

Definition

remove<U>(value: RelatedTo<T, U>): TpG['normal'];

Type parameters

NameDescription
U

Parameters

NameTypeDescription
valueRelatedTo<T, U>

Overrides

VariantSetBase.remove

removeAll

undocumented

Definition

removeAll<U>(values: StreamSource<RelatedTo<T, U>>): TpG['normal'];

Type parameters

NameDescription
U

Parameters

NameTypeDescription
valuesStreamSource<RelatedTo<T, U>>

Overrides

VariantSetBase.removeAll

stream

undocumented

symDifference

undocumented

Definition

symDifference(other: StreamSource<T>): TpG['normal'];

Parameters

NameTypeDescription
otherStreamSource<T>

Overrides

RSetBase.symDifference

toArray

undocumented

Definition

toArray(): ArrayNonEmpty<T>;

Overrides

NonEmpty.toArray

toBuilder

undocumented

Definition

toBuilder(): TpG['builder'];

Overrides

RSetBase.toBuilder

toJSON

undocumented

Definition

toJSON(): ToJSON<T[]>;

Overrides

VariantSetBase.toJSON

toString

undocumented

Definition

toString(): string;

Overrides

VariantSetBase.toString

union

undocumented

Definition

union(other: StreamSource<T>): TpG['nonEmpty'];

Parameters

NameTypeDescription
otherStreamSource<T>

Overrides

NonEmpty.union