slurp-heap-while-map ( heap quot1: ( value key -- slurp? ) quot2: ( value key -- obj/f ) -- seq )


Vocabulary
sequences.extras

Inputs
heapan object
quot1a quotation
quot2a quotation


Outputs
seqa sequence


Definition


: slurp-heap-while-map
( heap quot1: ( value key -- slurp? ) quot2: ( value key -- obj/f ) -- seq )
[ iterate-heap-while ] 3curry loop>array* ; inline