Versions in this module Expand all Collapse all v0 v0.2.0 Apr 6, 2026 Changes in this version type Heap + func (h *Heap[T, S]) Peek() (T, bool) v0.1.0 Apr 6, 2026 Changes in this version + type Heap struct + func NewMax[T any, S cmp.Ordered](startingValues []T, getPriority func(T) S) Heap[T, S] + func NewMin[T any, S cmp.Ordered](startingValues []T, getPriority func(T) S) Heap[T, S] + func (h *Heap[T, S]) Length() int + func (h *Heap[T, S]) Pop() (T, bool) + func (h *Heap[T, S]) Push(value T)