heap-peek ( heap -- value key )
Factor handbook » The language » Collections » Heaps

Prev:heap-size ( heap -- n )
Next:heap-push ( value key heap -- )


Vocabulary
heaps

Inputs
heapa heap


Outputs
valuean object
keyan object


Word description
Output the first element in the heap, leaving it in the heap.

Definition

GENERIC: heap-peek ( heap -- value key )


Methods