each ( ... seq quot: ( ... x -- ... ) -- ... )
Factor handbook > The language > Collections > Sequence operations > Sequence combinators

Next:each-index ( ... seq quot: ( ... elt index -- ... ) -- ... )


Vocabulary
sequences

Inputs and outputs
seqa sequence
quota quotation with stack effect ( ... x -- ... )


Word description
Applies the quotation to each element of the sequence in order.

Definition


: each ( ... seq quot: ( ... x -- ... ) -- ... )
setup-each each-integer ; inline