• Starting from the list aList, return a list containing the same elements in the same order, but for the last element of the list. Raises an error for an empty list.

    Parameters

    • aList: List<any>

      the list to consider

    Returns List<any>

    a list without the last element