Versions in this module Expand all Collapse all v1 v1.1.1 Oct 26, 2024 v1.1.0 Oct 26, 2024 Changes in this version + type GreaterThanable interface + GreaterThan func(T) bool + type Heap struct + func NewMaxI[T GreaterThanable[T]](data ...T) *Heap[T] + func NewMax[T constraints.Ordered](data ...T) *Heap[T] + func NewMinI[T LesserThanable[T]](data ...T) *Heap[T] + func NewMin[T constraints.Ordered](data ...T) *Heap[T] + func NewWith[T any](less func(T, T) bool, data ...T) *Heap[T] + func (h *Heap[T]) Data() []T + func (h *Heap[T]) Fix(i int) + func (h *Heap[T]) IsEmpty() bool + func (h *Heap[T]) Len() int + func (h *Heap[T]) Pop() T + func (h *Heap[T]) Push(x T) + func (h *Heap[T]) Remove(i int) T + func (h *Heap[T]) Snapshot() []T + type LesserThanable interface + LesserThan func(T) bool