On 23 March 2012 10:06, Lorenzo Bolla
<lbolla@gmail.com> wrote:
I'm not sure Data.Set would work, because afaik, Sets don't preserve ordering: so a row like "abc" and "cab" would be represented by the same Set.
What?
Yes, Data.Set doesn't preserve any ordering between the members of it. It doesn't modify the members themselves and shuffle their content though. Try it for yourself:
ghci> S.fromList ["abc", "cab"]
ghci> S.fromList ["abc", "cab", "abc"]
Ozgur