removeLast

fun removeLast(): T

Removes the last element from this list and returns that removed element.

Throws

If the list was empty.