Documentation ¶ Index ¶ type Heap func Init[T constraints.Ordered](min bool) Heap[T] func InitN[T constraints.Ordered](min bool, size int) Heap[T] func (h Heap[T]) Fix(i int) func (h Heap[T]) Pop() T func (h Heap[T]) Push(e T) func (h Heap[T]) Remove(i int) T Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Heap ¶ type Heap[T constraints.Ordered] struct { // contains filtered or unexported fields } func Init ¶ func Init[T constraints.Ordered](min bool) Heap[T] func InitN ¶ func InitN[T constraints.Ordered](min bool, size int) Heap[T] func (Heap[T]) Fix ¶ func (h Heap[T]) Fix(i int) func (Heap[T]) Pop ¶ func (h Heap[T]) Pop() T func (Heap[T]) Push ¶ func (h Heap[T]) Push(e T) func (Heap[T]) Remove ¶ func (h Heap[T]) Remove(i int) T Source Files ¶ View all Source files heap.go Click to show internal directories. Click to hide internal directories.