Skip to main content

class OrderedMapNonEmpty<K,V,Tp,TpG>

undocumented

Extends: NonEmptyBase<E>

Implements: OrderedMapBase.NonEmpty<K,V,Tp>

Type parameters

NameConstraintsDefaultDescription
Kundocumented
Vundocumented
TpOrderedMapTypes OrderedMapTypesundocumented
TpGWithKeyValue<Tp, K, V> WithKeyValue<Tp, K, V>undocumented

Properties

context

undocumented

Definition

readonly context: TpG['context'];

Overrides

RMapBase.context

isEmpty

undocumented

Definition

get isEmpty(): false;

Overrides

NonEmptyBase.isEmptyNonEmpty.isEmpty

keyOrder

undocumented

Definition

readonly keyOrder: List.NonEmpty<K>;

Overrides

NonEmpty.keyOrder

size

undocumented

Definition

get size(): number;

Overrides

VariantMapBase.size

sourceMap

undocumented

Definition

readonly sourceMap: TpG['sourceMapNonEmpty'];

Overrides

NonEmpty.sourceMap

Methods

[Symbol.iterator]

undocumented

addEntries

undocumented

Definition

addEntries(entries: StreamSource<readonly [K, V]>): OrderedMapBase<K, V, Tp> | any;

Parameters

NameTypeDescription
entriesStreamSource<readonly [K, V]>

Overrides

NonEmpty.addEntries

addEntry

undocumented

Definition

addEntry(entry: readonly [K, V]): WithKeyValue<Tp, K, V>['nonEmpty'];

Parameters

NameTypeDescription
entryreadonly [K, V]

Overrides

RMapBase.addEntry

asNormal

undocumented

Definition

asNormal(): any;

Overrides

NonEmptyBase.asNormal, NonEmpty.asNormal

assumeNonEmpty

undocumented

Definition

assumeNonEmpty(): any;

Overrides

NonEmptyBase.assumeNonEmpty, NonEmpty.assumeNonEmpty

copy

undocumented

Definition

copy(keyOrder?: List.NonEmpty<K>, sourceMap?: TpG["sourceMapNonEmpty"]): TpG['nonEmpty'];

Parameters

NameTypeDescription
keyOrderList.NonEmpty<K>
sourceMapTpG["sourceMapNonEmpty"]

filter

undocumented

Definition

filter(pred: (entry: [K, V], index: number, halt: () => void) => boolean): TpG['normal'];

Parameters

NameTypeDescription
pred(entry: [K, V], index: number, halt: () => void) => boolean

Overrides

VariantMapBase.filter

forEach

undocumented

Definition

forEach(f: (entry: [K, V], index: number, halt: () => void) => void, state?: TraverseState): void;

Parameters

NameTypeDescription
f(entry: [K, V], index: number, halt: () => void) => void
stateTraverseState

Overrides

VariantMapBase.forEach

get

undocumented

Definition

get<UK, O>(key: RelatedTo<K, UK>, otherwise?: OptLazy<O>): V | O;

Type parameters

NameDescription
UK
O

Parameters

NameTypeDescription
keyRelatedTo<K, UK>
otherwiseOptLazy<O>

Overrides

VariantMapBase.get

hasKey

undocumented

Definition

hasKey<UK>(key: RelatedTo<K, UK>): boolean;

Type parameters

NameDescription
UK

Parameters

NameTypeDescription
keyRelatedTo<K, UK>

Overrides

VariantMapBase.hasKey

mapValues

undocumented

Definition

mapValues<V2>(mapFun: (value: V, key: K) => V2): any;

Type parameters

NameDescription
V2

Parameters

NameTypeDescription
mapFun(value: V, key: K) => V2

Overrides

NonEmpty.mapValues

modifyAt

undocumented

Definition

modifyAt(key: K, options: {
    ifNew?: OptLazyOr<V, Token>;
    ifExists?: (currentValue: V, remove: Token) => V | Token;
  }): TpG['normal'];

Parameters

NameTypeDescription
keyK
options{
    ifNew?: OptLazyOr<V, Token>;
    ifExists?: (currentValue: V, remove: Token) => V | Token;
  }

Overrides

RMapBase.modifyAt

nonEmpty

undocumented

Definition

nonEmpty(): true;

Overrides

NonEmptyBase.nonEmpty, NonEmpty.nonEmpty

removeKey

undocumented

Definition

removeKey<UK>(key: RelatedTo<K, UK>): TpG['normal'];

Type parameters

NameDescription
UK

Parameters

NameTypeDescription
keyRelatedTo<K, UK>

Overrides

VariantMapBase.removeKey

removeKeyAndGet

undocumented

Definition

removeKeyAndGet<UK>(key: RelatedTo<K, UK>): [TpG['normal'], V] | undefined;

Type parameters

NameDescription
UK

Parameters

NameTypeDescription
keyRelatedTo<K, UK>

Overrides

VariantMapBase.removeKeyAndGet

removeKeys

undocumented

Definition

removeKeys<UK>(keys: StreamSource<RelatedTo<K, UK>>): TpG['normal'];

Type parameters

NameDescription
UK

Parameters

NameTypeDescription
keysStreamSource<RelatedTo<K, UK>>

Overrides

VariantMapBase.removeKeys

set

undocumented

Definition

set(key: K, value: V): WithKeyValue<Tp, K, V>['nonEmpty'];

Parameters

NameTypeDescription
keyK
valueV

Overrides

RMapBase.set

stream

undocumented

Definition

stream(): Stream.NonEmpty<[K, V]>;

Overrides

NonEmptyBase.stream, NonEmpty.stream

streamKeys

undocumented

Definition

streamKeys(): Stream.NonEmpty<K>;

Overrides

NonEmpty.streamKeys

streamValues

undocumented

Definition

streamValues(): Stream.NonEmpty<V>;

Overrides

NonEmpty.streamValues

toArray

undocumented

Definition

toArray(): ArrayNonEmpty<[K, V]>;

Overrides

NonEmpty.toArray

toBuilder

undocumented

Definition

toBuilder(): TpG['builder'];

Overrides

RMapBase.toBuilder

toJSON

undocumented

Definition

toJSON(): ToJSON<(readonly [K, V])[]>;

Overrides

VariantMapBase.toJSON

toString

undocumented

Definition

toString(): string;

Overrides

VariantMapBase.toString

updateAt

undocumented

Definition

updateAt<UK>(key: RelatedTo<K, UK>, update: Update<V>): any;

Type parameters

NameDescription
UK

Parameters

NameTypeDescription
keyRelatedTo<K, UK>
updateUpdate<V>

Overrides

NonEmpty.updateAt