maps

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FindFunc

type FindFunc[K any, V any] func(key K, val V) bool

type Map

type Map[K any, V any] interface {
	Remove(key K)
	Add(key K, val V)
	Get(key K) V
	Lookup(key K) (V, bool)
	Range(r RangeFunc[K, V])
	Find(r FindFunc[K, V]) V
}

type RangeFunc

type RangeFunc[K any, V any] func(key K, val V) bool

Jump to

Keyboard shortcuts

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