Say I have a 2D list:
[[1, 1, 1],
[A, B, C],
[D, E, F]]
I want the following combinations:
[1, 1, 1]
[1, 1, C]
[1, 1, F]
[1, B, 1]
[1, B, C]
[1, B, F]
[1, E, 1]
...
This continues on. I want it to be able to be done for any nxn 2D list.
Does any one know how to do this?