Handbook
Glossary
heap>pairs ( heap -- pairs )
Vocabulary
sequences
.
extras
Inputs
heap
an
object
Outputs
pairs
an
object
Word description
Collect the pairs inside a heap into a sequence. Ordering of the sequence is based on the ordering of the heap.
Definition
USING:
arrays
kernel
;
IN:
sequences.extras
:
heap>pairs
( heap -- pairs )
[
2drop
t
]
[
swap
2array
]
slurp-heap-while-map
;