Linq/Query unite arrays

for doing the above the grouping will not serve, as with different length arrays, shorter ones need to be filled up on common length

grafik

(From i In Enumerable.Range(0,{arr1,arr2,arr3}.Max(Function (a) a.Length))
Let ra = {arr1,arr2,arr3}.Select(Function (x) If(x.Length <= i,"",x(i))).toArray
Select r=ra).toList

grafik

Feel free to combine {arr1,arr2,arr3} into a variable and will use later this within the LINQ

2 Likes