import { RMapBase } from "https://deno.land/x/rimbu@0.13.0/collection-types/map-custom/interface/index.ts";
Interfaces
The map's Context instance that serves as a factory for all related immutable instances and builders. | |
Utility interface that provides higher-kinded types for this collection. |
import { type RMapBase } from "https://deno.land/x/rimbu@0.13.0/collection-types/map-custom/interface/index.ts";
Properties
readonly
context: WithKeyValue<Tp, K, V>["context"]Returns the context
associated to this collection instance.
Methods
addEntries<V2 extends V = V>(entries: StreamSource.NonEmpty<readonly [K, V2]>): WithKeyValue<Tp, K, V>["nonEmpty"]
Returns the collection with the entries from the given StreamSource
entries
added.
addEntries<V2 extends V = V>(entries: StreamSource<readonly [K, V2]>): WithKeyValue<Tp, K, V>["normal"]
modifyAt(atKey: K, options: { ifNew?: OptLazyOr<V, Token>; ifExists?: <V2 extends V = V>(currentEntry: V & V2, remove: Token) => V | Token; }): WithKeyValue<Tp, K, V>["normal"]
Returns the collection with the given atKey
key modified according to given options
.
updateAt<UK = K>(key: RelatedTo<K, UK>, update: RMapBase.Update<V>): WithKeyValue<Tp, K, V>["normal"]
Returns the collection where the value associated with given key
is updated with the given update
value or update function.
toBuilder(): WithKeyValue<Tp, K, V>["builder"]
Returns a builder object containing the entries of this collection.