pollLast

abstract fun pollLast(): E?

Retrieves and removes the last (highest) element, or returns null if this set is empty (optional operation).

Return

the last element, or null if this set is empty

Throws

if the pollLast operation is not supported by this collection