using System;
using System.Linq;
public class Test
{
public static void Main()
{
int[] numbers = {1, 2, 3};
string[] words = {"Uno", "Dos", "Tres"};
var numbersAndWords = numbers.Zip(words, (first, second) => String.Format("{0} {1}", first, second));
foreach (var item in numbersAndWords)
{
Console.WriteLine(item);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKCQlpbnRbXSBudW1iZXJzID0gezEsIDIsIDN9OwoJCXN0cmluZ1tdIHdvcmRzID0geyJVbm8iLCAiRG9zIiwgIlRyZXMifTsKCQkKCQl2YXIgbnVtYmVyc0FuZFdvcmRzID0gbnVtYmVycy5aaXAod29yZHMsIChmaXJzdCwgc2Vjb25kKSA9PiBTdHJpbmcuRm9ybWF0KCJ7MH0gezF9IiwgZmlyc3QsIHNlY29uZCkpOwoJCQoJCWZvcmVhY2ggKHZhciBpdGVtIGluIG51bWJlcnNBbmRXb3JkcykKCQl7CgkJICAgIENvbnNvbGUuV3JpdGVMaW5lKGl0ZW0pOwoJCX0KCX0KfQ==