Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyHolder = Empty{}
Functions ¶
This section is empty.
Types ¶
type BidMap ¶
type BidMap[K, V comparable] interface { Map[K, V] GetKey(value V) (key K, found bool) RemoveValue(value V) }
type Cache ¶
type Cache[K comparable, V any] interface { Container[V] Put(key K, value V) Get(key K) (value V, found bool) Keys() []K }
type Comparator ¶
func Reverse ¶
func Reverse[T any](cmp Comparator[T]) Comparator[T]
type Map ¶
type Map[K comparable, V any] interface { Cache[K, V] Remove(key K) }
type Set ¶
type Set[T comparable] interface { Container[T] Add(elements ...T) Remove(elements ...T) Contains(elements ...T) bool }
Directories
¶
Path | Synopsis |
---|---|
BitSet is a fixed-size sequence of n bits.
|
BitSet is a fixed-size sequence of n bits. |
A hash set can store unique values, without any particular order.
|
A hash set can store unique values, without any particular order. |
Package heapx is an advanced heap, which can remove or update any item in O(nlogn) time.
|
Package heapx is an advanced heap, which can remove or update any item in O(nlogn) time. |
internal
|
|
heap
Package heap is a generics version of "container/heap" in the standard library
|
Package heap is a generics version of "container/heap" in the standard library |
Package list implements a doubly linked list.
|
Package list implements a doubly linked list. |
Package listmap is a map that preserves insertion-order.
|
Package listmap is a map that preserves insertion-order. |
A queue gives you a FIFO or first-in firs-out order.
|
A queue gives you a FIFO or first-in firs-out order. |
Package ring implements operations on circular lists.
|
Package ring implements operations on circular lists. |
Package treemap implements a map backed by red-black tree.
|
Package treemap implements a map backed by red-black tree. |
Package treeset implements a tree backed by a red-black tree.
|
Package treeset implements a tree backed by a red-black tree. |
Click to show internal directories.
Click to hide internal directories.