peek

fun peek(): E?(source)

Returns the element with the highest priority.

Return

The element with the highest priority, or null if the queue is empty.