Versions in this module Expand all Collapse all v0 v0.2.0 Feb 20, 2025 v0.1.0 Feb 7, 2025 Changes in this version + type Map struct + func NewMap[K comparable, V any](size ...int) *Map[K, V] + func (m *Map) Clear() + func (m *Map) Delete(key K) + func (m *Map) Has(key K) bool + func (m *Map) Iter() iter.Seq2[K, V] + func (m *Map) Keys() []K + func (m *Map) Len() int + func (m *Map) Load(key K) (V, bool) + func (m *Map) LoadAndDelete(key K) (cur V, ok bool) + func (m *Map) LoadOrStore(key K, val V) (cur V, ok bool) + func (m *Map) Snapshot() map[K]V + func (m *Map) Store(key K, value V) + func (m *Map) Swap(key K, val V) (V, bool) + func (m *Map) Values() []V + func (m *Map[K, V]) Clone() Map[K, V] + type MapCmp struct + func NewMapCmp[K, V comparable](size ...int) *MapCmp[K, V] + func (m *MapCmp) Clear() + func (m *MapCmp) Delete(key K) + func (m *MapCmp) Has(key K) bool + func (m *MapCmp) Iter() iter.Seq2[K, V] + func (m *MapCmp) Keys() []K + func (m *MapCmp) Len() int + func (m *MapCmp) Load(key K) (V, bool) + func (m *MapCmp) LoadAndDelete(key K) (cur V, ok bool) + func (m *MapCmp) LoadOrStore(key K, val V) (cur V, ok bool) + func (m *MapCmp) Snapshot() map[K]V + func (m *MapCmp) Store(key K, value V) + func (m *MapCmp) Swap(key K, val V) (V, bool) + func (m *MapCmp) Values() []V + func (m *MapCmp[K, V]) Clone() MapCmp[K, V] + func (m *MapCmp[K, V]) DeleteIfEqual(key K, expected V) bool + func (m *MapCmp[K, V]) SwapIfEqual(key K, expected, val V) bool + type Slice struct + func NewSliceFrom[E any](elements []E) *Slice[E] + func NewSlice[E any](sizes ...int) *Slice[E] + func (s *Slice[E]) Append(items ...E) + func (s *Slice[E]) At(i int) E + func (s *Slice[E]) Cap() int + func (s *Slice[E]) Clear() int + func (s *Slice[E]) Clip() int + func (s *Slice[E]) Concat(other ...[]E) (int, int) + func (s *Slice[E]) Delete(i, j int) (int, int) + func (s *Slice[E]) DeleteFunc(del func(E) bool) (int, int) + func (s *Slice[E]) Grow(n int) int + func (s *Slice[E]) Insert(i int, v ...E) (int, int) + func (s *Slice[E]) Iter() iter.Seq2[int, E] + func (s *Slice[E]) Len() int + func (s *Slice[E]) Replace(i, j int, v ...E) (int, int) + func (s *Slice[E]) Snapshot() []E + func (s *Slice[E]) Store(i int, val E)