okay, this is probably going to be in the prelude, but: is there a standard library function for finding the unique elements in a list? my (re)implementation, for clarificat
I think this would do it.
unique [] = [] unique (x:xs) = x:unique (filter ((/=) x) xs)