Extracted from Pike v8.0 release 276 as of 2016-07-30.
   

Method ADT.Heap()->pop()


Method pop

mixed pop()

Description

Removes and returns the item on top of the heap, which also is the smallest value in the heap.

Throws

Throws an error if the heap is empty.

See also

peek(), push(), remove()