import { RMapBase } from "https://deno.land/x/rimbu@1.0.2/collection-types/map-custom/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@1.0.2/collection-types/map-custom/index.ts";
Methods
Returns the collection with the given key
associated to the given value
.
Returns the collection with given entry
added.
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.
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
.