I have an IEnumerable<int> that I can print, and which I can double (code below). It's not a problem. How to adjust the linq operator so that it accepts these 3 values ββand outputs 6 values? For example, the values ββare double and half, so the values ββwill be 12, 3, 16, 4, 8, 2 .
foreach (var v in (new int[] { 6, 8, 4 }).Select(s=>s*2)) Console.WriteLine(v);
user34537
source share