Linq/Query unite arrays

@YoungFave
Variables:
grafik

Flow:
grafik

LINQ:

(From a In {arr1,arr2,arr3}
Select ta = a.Select(Function (x,i) Tuple.Create(i,x))
From t In ta 
Group t By t.Item1 Into grp=Group
Let ga = grp.Select(Function (g) g.Item2).toArray
Select grs = ga).toList

done with the help of position tuples created by an indexed select

Check:
grafik

2 Likes