Skip to main content

interface HashMultiMapSortedValue.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 HashMultiMapSortedValue API documentation

Extends: Streamable.NonEmpty<T>, HashMultiMapSortedValue<K,V>

Type parameters

NameDescription
Kthe key type
Vthe value type
note
  • The HashMultiMapSortedValue uses the contexts' HashMap keyContext to hash the keys - The HashMultiMapSortedValue uses the contexts' SortedSet valueContext to collect the values for each key.
example
const m1 = HashMultiMapSortedValue.empty<number, string>()
const m2 = HashMultiMapSortedValue.of([1, 'a'], [1, 'b'], [2, 'a'])

Methods

stream

undocumented

Definition

stream(): Stream.NonEmpty<[K, V]>;

Overrides

NonEmpty.stream