Loop over multiple arrays simultaneously: Difference between revisions

Content added Content deleted
(→‎{{header|Scheme}}: Cleanup. Previous one could display wrong values, creates garbage, and unneded use of 'begin'.)
Line 501:
=={{header|Scheme}}==
<lang scheme>
(mapfor-each (lambda (x y z)
(display (beginx)
(display xy)
(display yz)
(newline)))
(display z)
'(a b c) '(A B C) '(1 2 3))
(newline)))
'(a b c) '(A B C) '(1 2 3))
</lang>
The R5RS standard specifies that the three lists must be of the same size.