removeLast

open fun removeLast(): E?

Removes and returns the last element of this collection (optional operation).

Return

the removed element

Throws

if this collection is empty

if this collection implementation does not support this operation