Addressable Binary Heaps - v1.0.1

    Function entries

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

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

      Type Parameters

      Parameters

      • instance: H

        The max-heap instance.

      • Optionalreversed: boolean = false

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

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

      An iterator yielding heap elements in the specified order.

    MMNEPVFCICPMFPCPTTAAATR