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