Question: Is there a simple way to turn an inner list into a set?



I'm trying to develop a new notation and am having problems with lists vs. sets.

Basically I have things of the form [[a,b]],[[c,d,e]],[[f],[f,h]] and I want to change them to the form [{a,b}],[{c,d,e}],[{f},{f,h}].

I start from a flat list [a,b,c,d,e,f,f,h] and then divide it up, so using sets initially would lose repeated elements. But then once it has been divided up, I need the innermost brackets to be sets.




Please Wait...