maps

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainMap

type ChainMap[K comparable, V any] interface {
	Push(leyer map[K]V)
	Pop() (map[K]V, bool)
	Get(K) (V, bool)
	ToMap() map[K]V
	Copy() ChainMap[K, V]
}

func NewChain

func NewChain[K comparable, V any]() ChainMap[K, V]

type OrderedMap

type OrderedMap[K comparable, V any] interface {
	Get(K) (V, bool)
	Put(K, V)
	Delete(K)
	Iter(func(K, V) bool) bool
	Slice() []V
}

func NewOrdered

func NewOrdered[K comparable, V any]() OrderedMap[K, V]

Jump to

Keyboard shortcuts

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