Addressable Binary Heaps - v1.3.0
    Preparing search index...

    Function entries

    • Returns an iterator for traversing all elements in the min-heap.

      Note: The traversal follows the order of the underlying array, not the priority order.

      Type Parameters

      • H extends IHeapArray

        The type of min-heap array.

      Parameters

      • instance: H

        The min-heap instance.

      • Optionalreversed: boolean = false

        If true, the iterator will traverse the heap in reverse order.

      Returns Generator<H[number], void, unknown>

      An iterator yielding heap elements in the specified order.