peek

fun peek(): T

Returns the value at the head of the queue without removing it.

Return

The value currently at the head of the queue.

Throws

If the queue has no next element.