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 and outputs
seq1a sequence
seq2a sequence
seq3a sequence
quota quotation with stack effect ( ... elt1 elt2 elt3 -- ... )


Word description
Applies the quotation to triples of elements from seq1, seq2 and seq3.

Definition


: 3each
( ... seq1 seq2 seq3 quot: ( ... elt1 elt2 elt3 -- ... ) -- ... )
(3each) each-integer ; inline