Pike v8.0 release 1738

Method ADT.Heap()->peek()


Method peek

mixed peek()

Description

Returns the item on top of the heap (which is also the smallest value in the heap) without removing it.

Returns

Returns the smallest value on the heap if any, and UNDEFINED otherwise.

See also

low_peek(), pop()