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: | Line 501: | ||
=={{header|Scheme}}== |
=={{header|Scheme}}== |
||
<lang scheme> |
<lang scheme> |
||
( |
(for-each (lambda (x y z) |
||
(display x) |
|||
(display |
(display y) |
||
(display |
(display z) |
||
⚫ | |||
(display z) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
</lang> |
</lang> |
||
The R5RS standard specifies that the three lists must be of the same size. |
The R5RS standard specifies that the three lists must be of the same size. |