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

    Function create

    • Creates a new min-heap instance, optionally initialized with elements.

      Type Parameters

      Parameters

      • OptionalinitialNodes: H[0][] | readonly H[0][]

        Array of unsorted heap elements to initialize with.

      Returns H

      A new min-heap instance