import { type RMapBase } from "https://deno.land/x/rimbu@0.13.5/collection-types/map-custom/index.ts";
const { Factory } = RMapBase;
Type Parameters
Methods
Returns the (singleton) empty instance of this type and context with given key and value types.
Returns an immutable map of this collection type and context, containing the given entries
.
Returns an immutable map of this type and context, containing the entries in the given sources
StreamSource
instances.
Returns an empty builder instance for this type of collection and context.
Returns a Reducer
that adds received tuples to an RMap and returns the RMap as a result. When a source
is given,
the reducer will first create an RMap from the source, and then add tuples to it.
Returns a Map containing all keys from this map and all the given sources
key-value stream sources,
and as values tuples of all the corresponding values for each key. If a source doesn't have a key,
the tuple will be filled with the given fillValue
.
Returns a Map containing all keys from this map and all the given sources
key-value stream sources,
and as values the result of applying the given mergeFun
to the key and all the corresponding values for each key. If a source doesn't have a key,
the given tuple will be filled with the given fillValue
.
Returns a Map containing the common keys from this map and all the given sources
key-value stream sources,
and as values tuples of all the corresponding values for each common key. If a source doesn't have a key,
the key will be skipped.
Returns a Map containing the common keys from this map and all the given sources
key-value stream sources,
and as values the result of applying given mergeFun
to the key and values of all the corresponding values for each common key.
If a source doesn't have a key, the key will be skipped.