Handbook
Glossary
heap-pop ( heap -- value key )
Factor handbook
»
The language
»
Collections
»
Heaps
Prev:
heap-pop* ( heap -- )
Next:
heap-delete ( entry heap -- )
Vocabulary
heaps
Inputs
heap
a
heap
Outputs
value
an
object
key
an
object
Word description
Output and remove the first element in the heap.
Side effects
Modifies
heap
Definition
USING:
kernel
;
IN:
heaps
:
heap-pop
( heap -- value key )
[
heap-peek
]
[
heap-pop*
]
bi
;