Handbook
Glossary
each ( ... seq quot: ( ... x -- ... ) -- ... )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Sequence combinators
Next:
each-index ( ... seq quot: ( ... elt index -- ... ) -- ... )
Vocabulary
sequences
Inputs
seq
a
sequence
quot
a
quotation
with stack effect
( ... x -- ... )
Outputs
None
Word description
Applies the quotation to each element of the sequence in order.
Definition
USING:
math
sequences.private
;
IN:
sequences
:
each
( ... seq quot: ( ... x -- ... ) -- ... )
sequence-operator
each-integer-from
;
inline