next

open operator override fun next(): T

Removes and returns the value from the head of the queue.

Return

The value that was at the head of the queue when this method was called.

Throws

If the queue has no next element.