A simple, generic heap implementation that uses a caller provided function to enable heaps of custom types.
Defines a function that is used to verify the sorting of elements in a Heap instance.
Creates a new heap containing the given values, sorted by the given SortTest function.
Creates a new heap containing the values in the given iterable, sorted by the given SortTest function.
Creates a new max-heap containing the given values.
Creates a new min-heap containing the given values.