multimap

package
v0.0.0-...-afa95d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Multimap

type Multimap[K, V comparable] map[K]set.Set[V]

func New

func New[K, V comparable]() Multimap[K, V]

func (Multimap[K, V]) Add

func (m Multimap[K, V]) Add(key K, value V)

func (Multimap[K, V]) All

func (m Multimap[K, V]) All(f func(key K, value V) bool) bool

func (Multimap[K, V]) Clone

func (m Multimap[K, V]) Clone() Multimap[K, V]

func (Multimap[K, V]) Contains

func (m Multimap[K, V]) Contains(key K, value V) bool

func (Multimap[K, V]) ContainsKey

func (m Multimap[K, V]) ContainsKey(key K) bool

func (Multimap[K, V]) Inverse

func (m Multimap[K, V]) Inverse() Multimap[V, K]

func (Multimap[K, V]) Remove

func (m Multimap[K, V]) Remove(key K, value V)

func (Multimap[K, V]) Size

func (m Multimap[K, V]) Size() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL