kotlin-stdlib / kotlin.collections / ArrayDeque / removeFirstOrNull removeFirstOrNull Common JVM JS Native 1.0 fun removeFirstOrNull(): E?(source) Removes the first element from this deque and returns that removed element, or returns null if this deque is empty.