Handbook
Glossary
pheap-peek ( heap -- value prio )
Persistent heaps
Prev:
<singleton-heap> ( value prio -- heap )
Next:
pheap-push ( value prio heap -- newheap )
Vocabulary
persistent
.
heaps
Inputs
heap
a persistent heap
Outputs
value
an object in the heap
prio
the minimum priority
Word description
Gets the object in the heap with minimum priority.
Definition
IN:
persistent.heaps
GENERIC:
pheap-peek
( heap -- value prio )
Methods
USING:
accessors
kernel
persistent.heaps
persistent.heaps.private
;
M:
branch
pheap-peek
[
value>>
]
[
prio>>
]
bi
;
USING:
persistent.heaps
persistent.heaps.private
;
M:
empty-heap
pheap-peek
empty-pheap
;