Handbook
Glossary
heap-push ( value key heap -- )
Factor handbook
»
The language
»
Collections
»
Heaps
Prev:
heap-peek ( heap -- value key )
Next:
heap-push* ( value key heap -- entry )
Vocabulary
heaps
Inputs
value
an
object
key
a comparable object
heap
a
heap
Outputs
None
Word description
Push a pair onto a heap. The key must be comparable with all other keys by the
<=>
generic word.
Side effects
Modifies
heap
Definition
USING:
kernel
;
IN:
heaps
:
heap-push
( value key heap -- )
heap-push*
drop
;