Versions in this module Expand all Collapse all v1 v1.18.3 Jan 4, 2025 Changes in this version type Map + func NewWithIntComparators() *Map + func NewWithStringComparators() *Map v1.0.2 Sep 10, 2024 Changes in this version + type Iterator struct + func (iterator *Iterator[K, V]) Begin() + func (iterator *Iterator[K, V]) End() + func (iterator *Iterator[K, V]) First() bool + func (iterator *Iterator[K, V]) Key() K + func (iterator *Iterator[K, V]) Last() bool + func (iterator *Iterator[K, V]) Next() bool + func (iterator *Iterator[K, V]) NextTo(f func(key K, value V) bool) bool + func (iterator *Iterator[K, V]) Prev() bool + func (iterator *Iterator[K, V]) PrevTo(f func(key K, value V) bool) bool + func (iterator *Iterator[K, V]) Value() V + type Map struct + func NewWith[K, V comparable](keyComparator utils.Comparator[K], valueComparator utils.Comparator[V]) *Map[K, V] + func New[K, V cmp.Ordered]() *Map[K, V] + func (m *Map[K, V]) All(f func(key K, value V) bool) bool + func (m *Map[K, V]) Any(f func(key K, value V) bool) bool + func (m *Map[K, V]) Clear() + func (m *Map[K, V]) Each(f func(key K, value V)) + func (m *Map[K, V]) Empty() bool + func (m *Map[K, V]) Find(f func(key K, value V) bool) (k K, v V) + func (m *Map[K, V]) FromJSON(data []byte) error + func (m *Map[K, V]) Get(key K) (value V, found bool) + func (m *Map[K, V]) GetKey(value V) (key K, found bool) + func (m *Map[K, V]) Iterator() *Iterator[K, V] + func (m *Map[K, V]) Keys() []K + func (m *Map[K, V]) Map(f func(key1 K, value1 V) (K, V)) *Map[K, V] + func (m *Map[K, V]) MarshalJSON() ([]byte, error) + func (m *Map[K, V]) Put(key K, value V) + func (m *Map[K, V]) Remove(key K) + func (m *Map[K, V]) Select(f func(key K, value V) bool) *Map[K, V] + func (m *Map[K, V]) Size() int + func (m *Map[K, V]) String() string + func (m *Map[K, V]) ToJSON() ([]byte, error) + func (m *Map[K, V]) UnmarshalJSON(bytes []byte) error + func (m *Map[K, V]) Values() []V