Advertisement
STANAANDREY

unique hask

Feb 15th, 2025
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. unique :: Eq a => [a] -> [a]
  2. unique [] = []
  3. unique (x:xs) = x : unique (filter (/= x) xs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement