removeFirst

abstract fun removeFirst()(source)

Removes the first element, making the collection one element fewer. The element is placed at the beginning of the sequence.

If there is no element in the collection, EmptyDequeAccessException is thrown.

Throws

when the collection is empty.