Versions in this module Expand all Collapse all v1 v1.0.9 Mar 21, 2025 Changes in this version + type Heap interface + Extract func() (T, error) + Insert func(value T) + Len func() int + Peek func() (T, error) + Remove func(value T) error + func NewHeap[T any](hType HeapType, compare func(a, b T) int) Heap[T] + type HeapType int + const MaxHeap + const MinHeap + type Set interface + Add func(value T) bool + Contains func(value T) bool + Remove func(value T) bool + Values func() []T + func NewSet[T comparable](keys ...T) Set[T]