fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. var lst = (new[] {1, 2, 3}).SelectMany(x =>
  10. from it in new[] {0, 10} select it + x);
  11. Console.WriteLine(string.Join(", ", lst.Select(x => x.ToString()).ToArray()));
  12. }
  13. }
Success #stdin #stdout 0.04s 33968KB
stdin
Standard input is empty
stdout
1, 11, 2, 12, 3, 13