Documentation ¶
Overview ¶
MultiMap types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExistedBefore ¶
type ExistedBefore bool
type MultiMap ¶
type MultiMap[K comparable, V comparable] map[K]sets.Set[V]
Like a map[K]V, but allows mapping a single key to multiple distinct values.
func (MultiMap[K, V]) Insert ¶
func (mm MultiMap[K, V]) Insert(key K, value V) ExistedBefore
func (MultiMap[K, V]) Remove ¶
func (mm MultiMap[K, V]) Remove(key K, value V) ExistedBefore
Click to show internal directories.
Click to hide internal directories.