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

_NonEmptyType

undocumented

Definition

_NonEmptyType: Tp['nonEmpty'];

Overrides

NonEmptyBase._NonEmptyType

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, options?: {
    negate?: boolean | undefined;
  }): any;

Parameters

NameTypeDescription
pred(value: T, index: number, halt: () => void) => boolean
options{
    negate?: boolean | undefined;
  }

Overrides

VariantSetBase.filter

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

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(): this is this['_NonEmptyType'];

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

Definition

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

Parameters

NameTypeDescription
options{
    reversed?: boolean;
  }

Overrides

NonEmptyBase.stream, NonEmpty.stream

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