stablemap

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func (*Map[K, V]) Clear

func (m *Map[K, V]) Clear()

func (*Map[K, V]) ForEach

func (m *Map[K, V]) ForEach(f func(key K, value V))

func (*Map[K, V]) Get

func (m *Map[K, V]) Get(k K) (V, bool)

func (*Map[K, V]) GetOrZero

func (m *Map[K, V]) GetOrZero(k K) V

func (*Map[K, V]) Has

func (m *Map[K, V]) Has(k K) bool

func (*Map[K, V]) Keys

func (m *Map[K, V]) Keys() []K

func (*Map[K, V]) Len

func (m *Map[K, V]) Len() int

func (*Map[K, V]) Put

func (m *Map[K, V]) Put(k K, v V)

func (*Map[K, V]) Remove

func (m *Map[K, V]) Remove(k K)

func (*Map[K, V]) Values

func (m *Map[K, V]) Values() []V

type MultiMap

type MultiMap[K comparable, V any] struct {
	Map[K, *array.Array[V]]
}

func (*MultiMap[K, V]) Add

func (m *MultiMap[K, V]) Add(k K, v V)

Jump to

Keyboard shortcuts

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