removeFirst

open fun removeFirst(): E?

Removes and returns the first element of this collection (optional operation).

Return

the removed element

Throws

if this collection is empty

if this collection implementation does not support this operation