I've got a situation in which I need to find all permutations of a List of lists of doubles like the following:
List<double> A = new List<double>(){ 1, 2, 3};
List<double> B = new List<double>(){ 10, 20, 30};
List<double> C = new List<double>(){ 100, 200, 300};
needs to give me:
{(1,10,100),(1,10,200),(1,10,300),(1,20,100),(1,20,200),(1,20,300)...}
I can do it for a fixed number of lists, but I want the flexibility (and neatness) of a generalised solution. I've found answers that deal with permutations of a single list, but nothing taking one option from each list, as shown above.