Documentation ¶ Index ¶ type Heap func New[T Interface](l int) Heap[T] func NewFromArray[T Interface](arr []T) Heap[T] func (heap *Heap[T]) First() T func (heap *Heap[T]) Fix(i int) func (heap Heap[T]) Init() func (heap *Heap[T]) Last() T func (heap *Heap[T]) Pop() T func (heap *Heap[T]) Push(x T) func (heap *Heap[T]) Remove(i int) T type Interface Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Heap ¶ type Heap[T Interface] heap.Heap[T, int] func New ¶ func New[T Interface](l int) Heap[T] func NewFromArray ¶ func NewFromArray[T Interface](arr []T) Heap[T] func (*Heap[T]) First ¶ func (heap *Heap[T]) First() T func (*Heap[T]) Fix ¶ func (heap *Heap[T]) Fix(i int) func (Heap[T]) Init ¶ func (heap Heap[T]) Init() func (*Heap[T]) Last ¶ func (heap *Heap[T]) Last() T func (*Heap[T]) Pop ¶ func (heap *Heap[T]) Pop() T func (*Heap[T]) Push ¶ func (heap *Heap[T]) Push(x T) func (*Heap[T]) Remove ¶ func (heap *Heap[T]) Remove(i int) T type Interface ¶ type Interface interface { OrderKey() int } Source Files ¶ View all Source files heap.go Click to show internal directories. Click to hide internal directories.