Handbook
Glossary
<singleton-heap> ( value prio -- heap )
Persistent heaps
Prev:
<persistent-heap> ( -- heap )
Next:
pheap-peek ( heap -- value prio )
Vocabulary
persistent
.
heaps
Inputs
value
an
object
prio
a priority
Outputs
heap
a persistent heap
Word description
Creates a new persistent heap consisting of one object with the given priority.
Definition
USING:
persistent.heaps.private
;
IN:
persistent.heaps
:
<singleton-heap>
( value prio -- heap )
<persistent-heap>
<persistent-heap>
<branch>
;