This looks like a fairly easy thing to solve but I've banged my head on this problem for a couple hours now without making progress. I'm hoping someone here could help me. I have an array that contains 2 elements arrays inside. Something like:
a=[[1,2],[3,4],[2,1],[4,3]]
I would like to be able to delete the permutations of arrays inside and keep only one of them. With the previous example, I would like to go from a to:
b=[[1,2],[3,4]]
Using double for loops seems to not work (at least with the ways I tried). I hope you can help me!
Using double for loops seems to not work (at least with the ways I tried) as I came upon the same problem.