queue::top()
Retrieve but not remove the head of the Queue, or return nothing if the Queue is empty
queue::top()
There are no parameters.
any — Returns the head of the Queue, or return nothing if the Queue is empty
import adt/queue
queue = queue()
queue.push(10)
queue.push(12)
queue.push(8)
writeln(queue.top()) ' Output: 10
writeln(queue.top()) ' Output: 10