Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountMap ¶ added in v0.0.26
type CountMap[K comparable] interface { Set(K, int64) Add(K, int64) Subtract(K, int64) Get(K) int64 GetAll() map[K]int64 Contain(K) bool Remove(K) Clear() }
func NewCountMap ¶ added in v0.0.26
func NewCountMap[K comparable]() CountMap[K]
type MultiMap ¶ added in v0.0.24
type MultiMap[K comparable, V any] interface { Add(K, ...V) Get(K) []V Size(K) int GetAll() map[K][]V Contain(K) bool Remove(K) Clear() }
func NewMultiMap ¶ added in v0.0.24
func NewMultiMap[K comparable, V any]() MultiMap[K, V]
type Set ¶
type Set[T comparable] interface { Add(...T) Contain(...T) bool Remove(...T) Clear() }
func NewSet ¶
func NewSet[T comparable]() Set[T]
Click to show internal directories.
Click to hide internal directories.