import { type VariantMultiMapBase } from "https://deno.land/x/rimbu@0.13.0/multimap/custom/interface/base.ts";
const { NonEmpty } = VariantMultiMapBase;
Properties
readonly
keyMap: WithKeyValue<Tp, K, V>["keyMapNonEmpty"]Returns the non-empty Map representation of this collection.
Methods
asNormal(): WithKeyValue<Tp, K, V>["normal"]
Returns this collection typed as a 'possibly empty' collection.
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.
toArray(): ArrayNonEmpty<[K, V]>
Returns a non-empty array containing all entries in this collection.