Returns an iterator for traversing the min-heap elements.
The type of min-heap.
The min-heap instance.
Optional
If true, the iterator will traverse the min-heap in reverse order.
true
A generator that yields min-heap elements in the provided order.
Returns an iterator for traversing the min-heap elements.