Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Heap ¶
type Heap[E any] interface { Len() int Push(E) Pop() E Peek() E Remove(int) E Fix(int) Queue() iter.Seq[E] // contains filtered or unexported methods }
Heap is a min-heap of elements of type E.
func Concurrent ¶
Concurrent returns a concurrent-safe heap based on the given heap. If the given heap is already concurrent-safe, it returns the given heap unchanged.
Click to show internal directories.
Click to hide internal directories.