Skip to main content

interface SortedBiMultiMap<K,V>

A type-invariant immutable bi-directional MultiMap where keys and values have a many-to-many mapping. Its keys and values are sorted. See the BiMultiMap documentation and the HashBiMultiMap API documentation

Companion namespace: SortedBiMultiMap

Implemented by: SortedBiMultiMap.NonEmpty<K,V>

Type parameters

NameDescription
Kthe key type
Vthe value type
example
const h1 = SortedBiMultiMap.empty<number, string>()
const h1 = SortedBiMultiMap.of([1, 'a'], [1, 'b'])