• Returns the last element of the list aList. Raises an error for an empty list.

    Parameters

    • aList: List<any>

      the list to consider

    Returns any

    the last element