Method ADT.Heap()->peek()


Method peek

ValueType 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()