I have a list of integer 2-tuples s = { {{3,4},{11,5}} , {{11,5},{3,4}}, {{5,5},{3,2}} }
(in reality this set is much larger).
I am trying to delete duplicates from this list. Specifically, I want to treat lists within s
which, up to a reordering, contain the same lists (2-tuples) as the same, and keep only one.
For instance, if s
were my actual list, I would want to convert it into the following list: { {{3,4},{11,5}} , {{5,5},{3,2}} }
.
I can't figure out an efficient way of doing this; in reality, my list s
is quite large, and its sublists also consist of many elements.
DeleteDuplicatesBy[s, Sort]
$\endgroup$