Documentation
¶
Index ¶
- type HashMap
- func (h *HashMap[K, V]) All() iter.Seq2[K, V]
- func (h *HashMap[K, V]) Clear()
- func (h *HashMap[K, V]) Delete(key K) bool
- func (h *HashMap[K, V]) Get(key K) (V, bool)
- func (h *HashMap[K, V]) Keys() iter.Seq[K]
- func (h *HashMap[K, V]) Len() int
- func (h *HashMap[K, V]) Put(key K, value V)
- func (h *HashMap[K, V]) Values() iter.Seq[V]
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 NewComparable ¶
func NewComparable[K comparable, V any]() *HashMap[K, V]
Click to show internal directories.
Click to hide internal directories.