import { type BiMultiMapBase } from "https://deno.land/x/rimbu@1.0.2/bimultimap/custom/interface/base.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
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.