RosettaCodeData/Task/Loop-over-multiple-arrays-simultaneously/Nemerle/loop-over-multiple-arrays-simultaneously-2.nemerle
2023-07-01 13:44:08 -04:00

16 lines
399 B
Text

using System.Console;
module LoopMult
{
Main() : void
{
def first = array['a', 'b', 'c'];
def second = array['A', 'B', 'C'];
def third = array[1, 2, 3];
when (first.Length == second.Length && second.Length ==
third.Length)
foreach (i in [0 .. (first.Length - 1)])
WriteLine("{0}{1}{2}", first[i], second[i], third[i]);
}
}