Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvlTree ¶ added in v2.3.1
type AvlTree[K Orderable, V any] interface { Contain(key K) bool Len() int Insert(key K, value V) Remove(key K) (V, bool) Search(key K) (V, bool) Max() (K, V, bool) Min() (K, V, bool) RemoveMax() (K, V, bool) RemoveMin() (K, V, bool) Ascend(fn TreeIter[K, V]) Descend(fn TreeIter[K, V]) }
func NewAvlTree ¶ added in v2.3.1
type BTree ¶ added in v2.1.2
type MapIter ¶ added in v2.2.0
type MapIter[K comparable, V any] func(K, V) bool
type PriorityQueue ¶ added in v2.1.8
func NewPriorityQueue ¶ added in v2.1.8
func NewPriorityQueue[T any](score func(T, T) bool) PriorityQueue[T]
type Set ¶ added in v2.1.2
type Set[T comparable] interface { Contain(T) bool Len() int Insert(...T) Remove(...T) ToSlice() []T }
func NewSet ¶
func NewSet[T comparable]() Set[T]
type SyncAvlTree ¶ added in v2.3.1
func NewSyncAvlTree ¶ added in v2.3.1
func NewSyncAvlTree[K Orderable, V any]() SyncAvlTree[K, V]
type SyncBTree ¶ added in v2.1.8
func NewSyncBTree ¶ added in v2.1.8
type SyncMap ¶ added in v2.1.4
type SyncMap[K comparable, V any] interface { Clear() Clone() map[K]V Iter(fn func(key K, value V) bool) Len() int Load(key K) (V, bool) LoadAndSet(key K, fn func(value V) V) Store(key K, value V) Stores(fn func(store func(key K, value V))) Delete(key K) }
func NewSyncMap ¶ added in v2.1.6
func NewSyncMap[K comparable, V any]() SyncMap[K, V]
type SyncPriorityQueue ¶ added in v2.1.8
type SyncPriorityQueue[T any] PriorityQueue[T]
func NewSyncPriorityQueue ¶ added in v2.1.8
func NewSyncPriorityQueue[T any](score func(T, T) bool) SyncPriorityQueue[T]
type SyncQueue ¶ added in v2.1.8
func NewSyncQueue ¶ added in v2.1.8
type SyncSet ¶ added in v2.1.4
type SyncSet[T comparable] Set[T]
func NewSyncSet ¶ added in v2.1.4
func NewSyncSet[T comparable]() SyncSet[T]
type SyncStack ¶ added in v2.1.8
func NewSyncStack ¶ added in v2.1.8
Click to show internal directories.
Click to hide internal directories.