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