hashmap

package
v0.0.0-...-9d022b6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashMap

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

func New

func New[K, V any](hash func(K) uint64, equal func(k1, k2 K) bool) *HashMap[K, V]

func NewComparable

func NewComparable[K comparable, V any]() *HashMap[K, V]

func (*HashMap[K, V]) All

func (h *HashMap[K, V]) All() iter.Seq2[K, V]

func (*HashMap[K, V]) Clear

func (h *HashMap[K, V]) Clear()

func (*HashMap[K, V]) Delete

func (h *HashMap[K, V]) Delete(key K) bool

func (*HashMap[K, V]) Get

func (h *HashMap[K, V]) Get(key K) (V, bool)

func (*HashMap[K, V]) Keys

func (h *HashMap[K, V]) Keys() iter.Seq[K]

func (*HashMap[K, V]) Len

func (h *HashMap[K, V]) Len() int

func (*HashMap[K, V]) Put

func (h *HashMap[K, V]) Put(key K, value V)

func (*HashMap[K, V]) Values

func (h *HashMap[K, V]) Values() iter.Seq[V]

Jump to

Keyboard shortcuts

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