I’m trying to create a script which can do ‘foil’ with unlimited number of character pairs. If I have this: X1 X2, Y1 Y2, Z1 Z2 I need to get that:
X1 Y1 Z1
X1 Y1 Z2
X1 Y2 Z1
Etc...
There can be any number of characters. (X1 X2 X3 X4 or just X1 and Y1)
And if I have this:
Rr, SS, Tt, ZZ
I would get this:
RSTZ, RSTZ, RSTZ, RStZ, RStZ, etc…
Please help to solve the problem.