Method ADT.Queue()->peek()


Method peek

ValueType|zero peek()

Description

Returns the next element from the queue without removing it from the queue. Returns UNDEFINED if the queue is empty.

Note

Prior to Pike 9.0 this function returned a plain 0 when the queue was empty.

See also

get(), put()