import { type HashValue } from "https://deno.land/x/rimbu@1.0.3/core/menu/multimap/hash-key.ts";
const { NonEmpty } = HashValue;
A non-empty type-invariant immutable MultiMap of key type K, and value type V. In the MultiMap, each key has at least one value. See the MultiMap documentation and the HashMultiMapHashValue API documentation
Examples
Example 1
Example 1
const m1 = HashMultiMapHashValue.empty<number, string>()
const m2 = HashMultiMapHashValue.of([1, 'a'], [1, 'b'], [2, 'a'])