kotlin-stdlib / kotlin.collections / ArrayDeque / lastOrNull lastOrNull Common JVM JS Native 1.0 fun lastOrNull(): E? Returns the last element, or null if this deque is empty.