mapiter

package
v0.0.0-...-141b564 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeTrackedMap

func MakeTrackedMap[M ~map[K]V, K comparable, V any](size int) M

func NewTrackedMapLit

func NewTrackedMapLit[M ~map[K]V, K comparable, V any](size int) lit[M, K, V]

func PanicUnorderedKeys

func PanicUnorderedKeys[K comparable, V any](m map[K]V) map[K]V

func TrackMap

func TrackMap[K comparable, V any](m map[K]V) map[K]V

func TrackedDelete

func TrackedDelete[K comparable, V any](m map[K]V, k K)

func TrackedPut

func TrackedPut[K comparable, V any](m map[K]V, k K, v V) struct{}

Types

type MapIter

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

func NewSortedIter

func NewSortedIter[K constraints.Ordered, V interface{}](m map[K]V) *MapIter[K, V]

func TrackedIter

func TrackedIter[K comparable, V any](m map[K]V) *MapIter[K, V]

func (*MapIter[K, V]) Next

func (m *MapIter[K, V]) Next() bool

func (*MapIter[K, V]) Pair

func (m *MapIter[K, V]) Pair() (K, V)

Jump to

Keyboard shortcuts

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