
4 Jun
2011
4 Jun
'11
1:03 p.m.
nub = toList . foldl (flip insert) empty
But it's crap because it doesn't respect the ordering on the list.
On 4 Jun 2011 17:53, "Christopher Howard"
On Fri, Jun 03, 2011 at 11:49:01PM -0800, Christopher Ho... @iustin: Thanks, that should work well enough.
@Edwards: I'm not familiar with Data.Set, so I do not understand your solution. -- frigidcode.com theologia.indicium.us _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners