removeLast

abstract fun removeLast(): E?

Removes the element at the end of the collection if it is present.

Return

The element that was removed or null if the collection was empty.