• Creates a binomial heap from an array

    Parameters

    • array: any[]

      the array to convert

    Returns BinomialHeap<any>

    a new binomial heap containing the elements from the array

    if the array is empty