Handbook
Glossary
heap-push-all ( assoc heap -- )
Factor handbook
»
The language
»
Collections
»
Heaps
Prev:
heap-push* ( value key heap -- entry )
Next:
heap-pop* ( heap -- )
Vocabulary
heaps
Inputs
assoc
an
assoc
heap
a
heap
Outputs
None
Word description
Push every key/value pair of an assoc onto a heap.
Side effects
Modifies
heap
Definition
USING:
assocs
kernel
;
IN:
heaps
:
heap-push-all
( assoc heap -- )
[
[
swap
]
]
dip
[
heap-push
]
curry
compose
assoc-each
;