import { MultiMapBase } from "https://deno.land/x/rimbu@1.0.2/multimap/custom/interface/base.ts";
Interfaces
The multimap'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 MultiMapBase } from "https://deno.land/x/rimbu@1.0.2/multimap/custom/interface/base.ts";
Properties
readonly
context: WithKeyValue<Tp, K, V>["context"]Returns the context
associated to this collection instance.
Methods
Returns the collection with the given value
added to the given key
values.
Returns the collection with the given entries
added.
addEntries(entries: StreamSource<readonly [K, V]>): WithKeyValue<Tp, K, V>["normal"]
Returns the collection where given key
has the given values
associated with it.
setValues(key: K, values: StreamSource<V>): WithKeyValue<Tp, K, V>["normal"]
modifyAt(atKey: K, options: { ifNew?: OptLazy<StreamSource<V>>; ifExists?: (currentValues: WithKeyValue<Tp, K, V>["keyMapValuesNonEmpty"]) => StreamSource<V>; }): WithKeyValue<Tp, K, V>["normal"]
Returns the collection with the given atKey
key modified according to given options
.
toBuilder(): WithKeyValue<Tp, K, V>["builder"]
Returns a builder object containing the entries of this collection.