• Given a heap aHeapI, return its smallest element, i.e the one at the root. aHeapI is not modified by this function.

    Parameters

    • aHeapI: HeapI<any>

      the heap to consider

    Returns any

    the minimal value inside aHeapI