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 and outputs
valuean object
keya comparable object
heapa heap


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