Loop over multiple arrays simultaneously: Difference between revisions

Content added Content deleted
(Added Easylang)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 4,695: Line 4,695:
=={{header|Wren}}==
=={{header|Wren}}==
The following script will work as expected provided the lengths of a1 and a2 are at least equal to the length of a3. Otherwise it will produce a 'Subscript out of bounds' error.
The following script will work as expected provided the lengths of a1 and a2 are at least equal to the length of a3. Otherwise it will produce a 'Subscript out of bounds' error.
<syntaxhighlight lang="ecmascript">var a1 = ["a", "b", "c"]
<syntaxhighlight lang="wren">var a1 = ["a", "b", "c"]
var a2 = ["A", "B", "C"]
var a2 = ["A", "B", "C"]
var a3 = [1, 2, 3]
var a3 = [1, 2, 3]