import { type BiMultiMapBase } from "https://deno.land/x/rimbu@1.1.0/bimultimap/custom/index.ts";
const { NonEmpty } = BiMultiMapBase;
Properties
readonly
keyValueMultiMap: WithKeyValue<Tp, K, V>["keyValueMultiMapNonEmpty"]Returns the non-empty MultiMap representation of the key to value mapping.
readonly
valueKeyMultiMap: WithKeyValue<Tp, K, V>["valueKeyMultiMapNonEmpty"]Returns the MultiMap representation of the value to key mapping.
Methods
Returns a non-empty Stream
containing all entries of this collection as tuples of key and value.
streamKeys(): Stream.NonEmpty<K>
Returns a non-empty Stream
containing all keys of this collection.
streamValues(): Stream.NonEmpty<V>
Returns a non-empty Stream
containing all values of this collection.
asNormal(): WithKeyValue<Tp, K, V>["normal"]
Returns this collection typed as a 'possibly empty' collection.
addEntries(entries: StreamSource<readonly [K, V]>): WithKeyValue<Tp, K, V>["nonEmpty"]
Returns the collection with the entries from the given StreamSource
entries
added.