popFirst

Removes the first item from this deque and returns it.

Example

val deque = dequeOf(1, 2)

assert(deque.popFirst() == 1)
assert(deque.popFirst() == 2)
deque.popFirst() // Exception!

Return

The value that was previously the first item in this deque.

Throws

If this deque is empty.