Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
each ( ... seq quot: ( ... x -- ... ) -- ... )
Factor documentation
>
Factor handbook
>
The language
>
Collections
>
Sequence operations
>
Sequence combinators
Next:
each-index ( ... seq quot: ( ... elt index -- ... ) -- ... )
Vocabulary
sequences
Inputs and outputs
seq
a
sequence
quot
a
quotation
with stack effect
( ... x -- ... )
Word description
Applies the quotation to each element of the sequence in order.
Definition
USING:
math
sequences.private
;
IN:
sequences
:
each
( ... seq quot: ( ... x -- ... ) -- ... )
(each)
each-integer
;
inline