Skip to main content

class MultiSetNonEmpty<T,Tp,TpG>

undocumented

Extends: NonEmptyBase<E>

Implements: MultiSetBase.NonEmpty<T,Tp>

Type parameters

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

Properties

_NonEmptyType

undocumented

Definition

_NonEmptyType: TpG['nonEmpty'];

Overrides

NonEmptyBase._NonEmptyType

context

undocumented

Definition

readonly context: TpG['context'];

Overrides

MultiSetBase.context

countMap

undocumented

Definition

readonly countMap: TpG['countMapNonEmpty'];

Overrides

NonEmpty.countMap

isEmpty

undocumented

Definition

get isEmpty(): false;

Overrides

NonEmptyBase.isEmptyNonEmpty.isEmpty

size

undocumented

Definition

readonly size: number;

Overrides

VariantMultiSetBase.size

sizeDistinct

undocumented

Definition

get sizeDistinct(): number;

Overrides

VariantMultiSetBase.sizeDistinct

Methods

[Symbol.iterator]

undocumented

add

undocumented

Definition

add(elem: T, amount?: number): WithElem<Tp, T>['nonEmpty'];

Parameters

NameTypeDescription
elemT
amountnumber

Overrides

NonEmpty.add

addAll

undocumented

Definition

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

Parameters

NameTypeDescription
valuesStreamSource<T>

Overrides

NonEmpty.addAll

addEntries

undocumented

Definition

addEntries(entries: StreamSource<readonly [T, number]>): TpG['nonEmpty'];

Parameters

NameTypeDescription
entriesStreamSource<readonly [T, number]>

Overrides

NonEmpty.addEntries

asNormal

undocumented

Definition

asNormal(): any;

Overrides

NonEmptyBase.asNormal, NonEmpty.asNormal

assumeNonEmpty

undocumented

copy

undocumented

Definition

copy(countMap: TpG['countMapNonEmpty'], size: number): TpG['nonEmpty'];

Parameters

NameTypeDescription
countMapTpG['countMapNonEmpty']
sizenumber

copyE

undocumented

Definition

copyE(countMap: TpG['countMap'], size: number): TpG['normal'];

Parameters

NameTypeDescription
countMapTpG['countMap']
sizenumber

count

undocumented

Definition

count<U>(elem: RelatedTo<T, U>): number;

Type parameters

NameDescription
U

Parameters

NameTypeDescription
elemRelatedTo<T, U>

Overrides

VariantMultiSetBase.count

filterEntries

undocumented

Definition

filterEntries(pred: (entry: readonly [T, number], index: number) => boolean, options?: {
    negate?: boolean | undefined;
  }): TpG['normal'];

Parameters

NameTypeDescription
pred(entry: readonly [T, number], index: number) => boolean
options{
    negate?: boolean | undefined;
  }

Overrides

VariantMultiSetBase.filterEntries

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

VariantMultiSetBase.forEach

has

undocumented

Definition

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

Type parameters

NameDescription
U

Parameters

NameTypeDescription
elemRelatedTo<T, U>

Overrides

VariantMultiSetBase.has

modifyCount

undocumented

Definition

modifyCount(value: T, update: (currentCount: number) => number): TpG['normal'];

Parameters

NameTypeDescription
valueT
update(currentCount: number) => number

Overrides

MultiSetBase.modifyCount

nonEmpty

undocumented

Definition

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

Overrides

NonEmptyBase.nonEmpty, NonEmpty.nonEmpty

remove

undocumented

Definition

remove<U>(elem: RelatedTo<T, U>, options?: {
    amount?: number | 'ALL';
  }): TpG['normal'];

Type parameters

NameDescription
U

Parameters

NameTypeDescription
elemRelatedTo<T, U>
options{
    amount?: number | 'ALL';
  }

Overrides

VariantMultiSetBase.remove

removeAllEvery

undocumented

Definition

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

Type parameters

NameDescription
U

Parameters

NameTypeDescription
elemsStreamSource<RelatedTo<T, U>>

Overrides

VariantMultiSetBase.removeAllEvery

removeAllSingle

undocumented

Definition

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

Type parameters

NameDescription
U

Parameters

NameTypeDescription
elemsStreamSource<RelatedTo<T, U>>

Overrides

VariantMultiSetBase.removeAllSingle

setCount

undocumented

Definition

setCount(elem: T, amount: number): TpG['normal'];

Parameters

NameTypeDescription
elemT
amountnumber

Overrides

MultiSetBase.setCount

stream

undocumented

streamDistinct

undocumented

Definition

streamDistinct(): Stream.NonEmpty<T>;

Overrides

NonEmpty.streamDistinct

toArray

undocumented

Definition

toArray(): ArrayNonEmpty<T>;

Overrides

NonEmpty.toArray

toBuilder

undocumented

Definition

toBuilder(): TpG['builder'];

Overrides

MultiSetBase.toBuilder

toJSON

undocumented

Definition

toJSON(): ToJSON<(readonly [T, number])[]>;

Overrides

VariantMultiSetBase.toJSON

toString

undocumented

Definition

toString(): string;

Overrides

VariantMultiSetBase.toString