removeFirst

fun removeFirst(): T

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

Throws

If the list was empty.