kotlin-stdlib / kotlin.collections / ArrayDeque / removeLastOrNull removeLastOrNull Common JVM JS Native 1.0 fun removeLastOrNull(): E?(source) Removes the last element from this deque and returns that removed element, or returns null if this deque is empty.