removeLast

abstract fun removeLast()(source)

Removes the last element, making the collection one element fewer. The element is placed at the end of the sequence.

If there is no element in the collection, EmptyDequeAccessException is thrown.

Throws

when the collection is empty.