• Given a heap aHeapI, remove its smallest element. Note that aHeapI is modified by this function.

    Parameters

    • aHeapI: HeapI<any>

      the heap to consider

    Returns any

    the minimal value inside aHeapI before removal