Documentation
¶
Index ¶
- func Less[T cmp.Ordered](a, b T) bool
- type Heap
- func (h *Heap[T]) Clear()
- func (h *Heap[T]) IsEmpty() bool
- func (h *Heap[T]) Len() int
- func (h *Heap[T]) Less(i, j int) bool
- func (h *Heap[T]) Peek() T
- func (h *Heap[T]) Pop() any
- func (h *Heap[T]) PopItem() T
- func (h *Heap[T]) Push(x any)
- func (h *Heap[T]) PushItem(x T)
- func (h *Heap[T]) Slice() []T
- func (h Heap[T]) Swap(i, j int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Heap ¶
type Heap[T any] struct { // contains filtered or unexported fields }
func NewWithLess ¶
Click to show internal directories.
Click to hide internal directories.