This is my revision from another postunion' :: (Eq a) => [a] -> [a] -> [a]union' [] list = listunion' (x:xs) list    | not $ x `elem` list = x : union' xs list    | otherwise = union' xs listAny suggestions welcome.
Haskell union list implementation pt 2
haskell;reinventing the wheel;set