How can I generate all possible combinations consisting of elements of given n sets? For example, if there are 3 sets:
A=1,2,3,4,... B=a,b,c,d,... C=A,B,C,D,... and you need to get something like:
1 a A; 1 b A; 1 c A .... 1 a B; 1 b B In this case, the number n is not known in advance, so itβs impossible to solve nested loops.