greetings monks,
need help with a very frustrating problem. i have an array of arrays each element of which contains a different number of elements, ranging from 2 to 5.
say @AoA = ([0,1] ,[8,9,10,11])
now for each of these arrays i want to generate the permutation of all the elements of that array taken 2 at a time. like
0,1
1,0
8,9
9,8
8,10
10,8
8,11
11,8
and so on...
cant figure out how to do this? if somebody has written something like this or has any suggestions on possible approach, please help