fork(7) download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5.  
  6. public class Test
  7. {
  8. public static void Main()
  9. {
  10. int[] arr = { 1, 2, 3};
  11. string[] arr2 = arr.Select(el => el + "a").ToArray();
  12.  
  13. foreach (var str in arr2)
  14. Console.Write(str + " ");
  15. }
  16. }
Success #stdin #stdout 0.04s 24000KB
stdin
Standard input is empty
stdout
1a 2a 3a