Answers for "Computing a Cartesian product or Combinations with LINQ"

C#
0

Computing a Cartesian product or Combinations with LINQ

var s1 = new[] {a, b}; 
var s2 = new[] {x, y, z}; 
var product = 
    from first in s1 
    from second in s2 
    select new[] { first, second };
Posted by: Guest on June-07-2021

C# Answers by Framework

Browse Popular Code Answers by Language