RosettaCodeData/Task/Loop-over-multiple-arrays-s.../C-sharp/loop-over-multiple-arrays-s...

3 lines
95 B
C#

Console.WriteLine((new[] { 1, 2, 3, 4 }).Zip(new[] { "a", "b", "c" },
(f, s) => f + " " + s));