mm

package
v0.0.0-...-aca9518 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

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