map-harvest ( ... seq quot: ( ... elt -- ... newelt ) -- ... newseq )


Vocabulary
sequences.extras

Inputs
seqa sequence
quota quotation


Outputs
newseqa sequence


Word description
A version of map with all empty sequences removed from the result.

Definition


: map-harvest
( ... seq quot: ( ... elt -- ... newelt ) -- ... newseq )
[ empty? not ] map-filter ; inline