pop

fun pop(): E?

Remove the last element and return it.

Returns null if empty.