heap-push* ( value key heap -- entry )
Factor handbook » The language » Collections » Heaps

Prev:heap-push ( value key heap -- )
Next:heap-push-all ( assoc heap -- )


Vocabulary
heaps

Inputs
valuean object
keya comparable object
heapa heap


Outputs
entryan entry


Word description
Push a pair onto a heap, and output an entry which may later be passed to heap-delete.

Side effects
Modifies heap

Definition

GENERIC: heap-push* ( value key heap -- entry )


Methods