Handbook
Glossary
3each ( ... seq1 seq2 seq3 quot: ( ... elt1 elt2 elt3 -- ... ) -- ... )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Sequence combinators
»
Triple-wise sequence combinators
Next:
3map ( ... seq1 seq2 seq3 quot: ( ... elt1 elt2 elt3 -- ... newelt ) -- ... newseq )
Vocabulary
sequences
Inputs
seq1
a
sequence
seq2
a
sequence
seq3
a
sequence
quot
a
quotation
with stack effect
( ... elt1 elt2 elt3 -- ... )
Outputs
None
Word description
Applies the quotation to triples of elements from
seq1
,
seq2
and
seq3
.
Definition
USING:
math
sequences.private
;
IN:
sequences
:
3each
( ... seq1 seq2 seq3 quot: ( ... elt1 elt2 elt3 -- ... ) -- ... )
3length-operator
each-integer
;
inline