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