pheap-pop ( heap -- newheap value prio )
Persistent heaps

Prev:pheap-push ( value prio heap -- newheap )
Next:pheap-pop* ( heap -- newheap )


Vocabulary
persistent.heaps

Inputs
heapa persistent heap


Outputs
newheapa new persistent heap
valuean object
prioa priority


Word description
Creates a new persistent heap with the minimum element removed, returning that element and its priority.

Definition