Handbook
Glossary
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
heap
a
heap
Outputs
value
an
object
key
an
object
Word description
Output the first element in the heap, leaving it in the heap.
Definition
IN:
heaps
GENERIC:
heap-peek
( heap -- value key )
Methods
USING:
accessors
heaps
heaps.private
sequences
;
M:
heap
heap-peek
data>>
first
>entry<
;