Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uniqueOnly :: Eq a => [a] -> [a]
- uniqueOnly [] = []
- uniqueOnly (x:xs)
- | x `elem` xs = uniqueOnly (filter (/= x) xs)
- | otherwise = x : (uniqueOnly xs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement