lmap>array ( ... list quot: ( ... elt -- ... newelt ) -- ... array )
Factor handbook » The language » Collections » Lists » Combinators for lists

Prev:foldr ( ... list identity quot: ( ... prev elt -- ... next ) -- ... result )


Vocabulary
lists

Inputs
lista list
quota quotation


Outputs
arrayan array


Word description
Executes the quotation on each element of the list, collecting the results in an array.

Definition


: lmap>array
( ... list quot: ( ... elt -- ... newelt ) -- ... array )
collector [ leach ] dip { } like ; inline