Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Countable ¶
type Countable interface {
Len() int
}
Countable MAY be provided by some implementations.
type OrderedMap ¶
type OrderedMap[K comparable, V any] interface { Delete(key K) Load(key K) (value V, loaded bool) Range(func(key K, value V) bool) Store(key K, value V) }
type Queue ¶
type Queue[E any] interface { Enqueue(E) // Dequeue removes the first element from the queue. If the queue is empty, // it returns the zero value of the element type, and ok is false. Dequeue() (e E, ok bool) }
Queue is a generic queue with no concurrency guarantees. Instantiate by queue.New<implementation>Queue(sizeHint). The size hint MAY be used by some implementations to optimize storage.
type Stack ¶
type Stack[E any] interface { Push(E) // Pop removes the top element from the stack. If the stack is empty, // it returns the zero value of the element type, and ok is false. Pop() (e E, ok bool) }
Stack is a generic queue with no concurrency guarantees. Instantiate by stack.New<implementation>Stack(sizeHint). The size hint MAY be used by some implementations to optimize storage.
Click to show internal directories.
Click to hide internal directories.