heap
  Creates a new heap containing the given values, sorted by the given SortTest function.
Example:
// Max heap
val heap = heapOf(1, 2, 3) { a, b -> a b }
heap.next() // 3
heap.next() // 2
heap.next() // 1Content copied to clipboard
Return
A new Heap instance containing the given values.
Author
Elizabeth Paige Harper - https://github.com/foxcapades
Since
0.1.0
Parameters
Creates a new heap containing the values in the given iterable, sorted by the given SortTest function.
Example:
val items = listOf(1, 2, 3)
val heap  = heapOf(items) { a, b -> a b }
heap.next() // 3
heap.next() // 2
heap.next() // 1Content copied to clipboard
Return
A new Heap instance containing the given values.
Author
Elizabeth Paige Harper - https://github.com/foxcapades
Since
0.1.0