firstOrNull

Returns the first element, or null if this deque is empty.

Since Kotlin

1.4