There is an array:
[[1,2], [3,4]]
How can I generate a 2d array of all row-permutations? I expect a result like:
[[[1,2], [