I will be incrementally adding tuple pairs into a python set.
I would like the set to recognize 'duplicates' as tuples which have the same contents regardless of order.
For example, if I add the following tuples:
([1, 0], [1, 1])
([1, 0], [0, 0])
([1, 1], [0, 0])
([1, 1], [1, 0])
I would like the set to discard the fourth item, as it is a 'duplicate' of the first. I wish I could do this with sets, but alas, they are unhashable.
Is there a simple way to do this?