interface SortedMultiMapSortedValue.NonEmpty<K,V>
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 SortedMultiMapSortedValue API documentation
Extends: Streamable.NonEmpty<T>
, SortedMultiMapSortedValue<K,V>
Type parameters
Name | Description |
---|---|
K | the key type |
V | the value type |
note
- The
SortedMultiMapSortedValue
uses the contexts'SortedMap
keyContext
to hash the keys - TheSortedMultiMapSortedValue
uses the contexts'SortedSet
valueContext
to collect the values for each key.
example
const m1 = SortedMultiMapSortedValue.empty<number, string>()
const m2 = SortedMultiMapSortedValue.of([1, 'a'], [1, 'b'], [2, 'a'])
Methods
stream
undocumented
stream