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