leach ( ... list quot: ( ... elt -- ... ) -- ... )
Factor handbook » The language » Collections » Lists » Combinators for lists

Next:lmap ( ... list quot: ( ... elt -- ... newelt ) -- ... result )


Vocabulary
lists

Inputs
lista list
quota quotation with stack effect ( ... elt -- ... )


Outputs
None

Word description
Call the quotation for each item in the list.

See also
foldl, lmap-lazy, ltake, lfilter, lappend-lazy, lfrom, lfrom-by, lconcat, lcartesian-product, lcartesian-product*, lcartesian-map, lcartesian-map*, lmerge, lwhile, luntil

Definition


: leach ( ... list quot: ( ... elt -- ... ) -- ... )
over nil? [ 2drop ] [ (leach) leach ] if ; inline recursive