Versions in this module Expand all Collapse all v0 v0.0.1 Sep 2, 2022 Changes in this version + type Comparer interface + Compare func(a, b K) int + func NewComparer(key K) Comparer[K] + type Hasher interface + Equal func(a, b K) bool + Hash func(key K) uint32 + func NewHasher(key K) Hasher[K] + type List struct + func NewList() *List[T] + func (l *List[T]) Append(value T) *List[T] + func (l *List[T]) Get(index int) T + func (l *List[T]) Iterator() *ListIterator[T] + func (l *List[T]) Len() int + func (l *List[T]) Prepend(value T) *List[T] + func (l *List[T]) Set(index int, value T) *List[T] + func (l *List[T]) Slice(start, end int) *List[T] + type ListBuilder struct + func NewListBuilder() *ListBuilder[T] + func (b *ListBuilder[T]) Append(value T) + func (b *ListBuilder[T]) Get(index int) T + func (b *ListBuilder[T]) Iterator() *ListIterator[T] + func (b *ListBuilder[T]) Len() int + func (b *ListBuilder[T]) List() *List[T] + func (b *ListBuilder[T]) Prepend(value T) + func (b *ListBuilder[T]) Set(index int, value T) + func (b *ListBuilder[T]) Slice(start, end int) + type ListIterator struct + func (itr *ListIterator[T]) Done() bool + func (itr *ListIterator[T]) First() + func (itr *ListIterator[T]) Last() + func (itr *ListIterator[T]) Next() (index int, value T) + func (itr *ListIterator[T]) Prev() (index int, value T) + func (itr *ListIterator[T]) Seek(index int) + type Map struct + func NewMap(hasher Hasher[K]) *Map[K, V] + func (m *Map[K, V]) Delete(key K) *Map[K, V] + func (m *Map[K, V]) Get(key K) (value V, ok bool) + func (m *Map[K, V]) Iterator() *MapIterator[K, V] + func (m *Map[K, V]) Len() int + func (m *Map[K, V]) Set(key K, value V) *Map[K, V] + type MapBuilder struct + func NewMapBuilder(hasher Hasher[K]) *MapBuilder[K, V] + func (b *MapBuilder[K, V]) Delete(key K) + func (b *MapBuilder[K, V]) Get(key K) (value V, ok bool) + func (b *MapBuilder[K, V]) Iterator() *MapIterator[K, V] + func (b *MapBuilder[K, V]) Len() int + func (b *MapBuilder[K, V]) Map() *Map[K, V] + func (b *MapBuilder[K, V]) Set(key K, value V) + type MapIterator struct + func (itr *MapIterator[K, V]) Done() bool + func (itr *MapIterator[K, V]) First() + func (itr *MapIterator[K, V]) Next() (key K, value V, ok bool) + type SortedMap struct + func NewSortedMap(comparer Comparer[K]) *SortedMap[K, V] + func (m *SortedMap[K, V]) Delete(key K) *SortedMap[K, V] + func (m *SortedMap[K, V]) Get(key K) (V, bool) + func (m *SortedMap[K, V]) Iterator() *SortedMapIterator[K, V] + func (m *SortedMap[K, V]) Len() int + func (m *SortedMap[K, V]) Set(key K, value V) *SortedMap[K, V] + type SortedMapBuilder struct + func NewSortedMapBuilder(comparer Comparer[K]) *SortedMapBuilder[K, V] + func (b *SortedMapBuilder[K, V]) Delete(key K) + func (b *SortedMapBuilder[K, V]) Get(key K) (value V, ok bool) + func (b *SortedMapBuilder[K, V]) Iterator() *SortedMapIterator[K, V] + func (b *SortedMapBuilder[K, V]) Len() int + func (b *SortedMapBuilder[K, V]) Map() *SortedMap[K, V] + func (b *SortedMapBuilder[K, V]) Set(key K, value V) + type SortedMapIterator struct + func (itr *SortedMapIterator[K, V]) Done() bool + func (itr *SortedMapIterator[K, V]) First() + func (itr *SortedMapIterator[K, V]) Last() + func (itr *SortedMapIterator[K, V]) Next() (key K, value V, ok bool) + func (itr *SortedMapIterator[K, V]) Prev() (key K, value V, ok bool) + func (itr *SortedMapIterator[K, V]) Seek(key K)