Returns the last element of an array. If the array is empty, raises an error.
the array to consider
the last element of the array
if the array is empty
Returns the last element of an array. If the array is empty, raises an error.