You are viewing a single comment's thread. Return to all comments →
I used
filt :: [Char] -> [Char] filt "" = [] filt (x:xs) = x : (filt $ filter (/= x) xs)
or
filt s = foldl (\acc x -> acc ++ (if x `elem` acc then "" else [x])) "" s
Seems like cookies are disabled on this browser, please enable them to open this website
Remove Duplicates
You are viewing a single comment's thread. Return to all comments →
I used
or