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