I have a set of lists that I want to remove duplicates from no matter the order of elements in each list, as the following :
I have this as input [[-1,-1,2],[0,-1,1],[1,-1,0],[2,-1,-1],[-1,2,-1],[-1,1,0],[0,1,-1],[-1,0,1],[1,0,-1]]
When I use Set<Set> to refine my elements it does partially the work but I get [[1,-1,0],[-1,2]] which it is logic because the inner Set refines the duplicates for [-1,-1,2].
When I tried to use Set<List> I couldn't refine my elements which gets me this [[-1,-1,2],[0,-1,1],[1,-1,0],[2,-1,-1],[-1,2,-1],[-1,1,0],[0,1,-1],[-1,0,1],[1,0,-1]]
So how I can manage to refine the duplicates and keep my resulting triplets intact?
Thank you in advance.