Documentation
¶
Index ¶
- Variables
- type Heap
- func (h *Heap[T]) Grow(n int)
- func (h *Heap[T]) Item(i int) T
- func (h *Heap[T]) Iterate() iterator.Iterator[T]
- func (h *Heap[T]) Len() int
- func (h *Heap[T]) Peek() T
- func (h *Heap[T]) Pop() T
- func (h *Heap[T]) Push(item T)
- func (h *Heap[T]) RemoveAt(i int)
- func (h *Heap[T]) Shrink(n int)
- func (h *Heap[T]) UpdateAt(i int, item T)
- type Less
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHeapModified = errors.New("heap modified during iteration")
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.