Nimony

The road to Nim 3

heapqueue

nimony/lib/std/heapqueue.nim

A min-heap (priority queue) implemented as a binary heap over a seq.

The smallest element (per <) is always at index 0, so pop returns elements in ascending order. The element type must be Comparable.