interface HashMultiMapSortedValue<K,V>
A 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 HashMultiMapSortedValue API documentation
Companion namespace: HashMultiMapSortedValue
Implemented by: HashMultiMapSortedValue.NonEmpty<K,V>
Type parameters
| Name | Description |
|---|---|
| K | the key type |
| V | the value type |
note
- The
HashMultiMapSortedValueuses the contexts'HashMapkeyContextto hash the keys - TheHashMultiMapSortedValueuses the contexts'SortedSetvalueContextto collect the values for each key.
example
const m1 = HashMultiMapSortedValue.empty<number, string>()
const m2 = HashMultiMapSortedValue.of([1, 'a'], [1, 'b'], [2, 'a'])