Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heap ¶
A Heap is a minimum heap ordered by key.
func (Heap[K, V]) Peek ¶
func (h Heap[K, V]) Peek() (K, V)
Peek returns the smallest element in the heap. It must not be called when the heap is empty.
Click to show internal directories.
Click to hide internal directories.