filter' :: (a -> Bool) -> [a] -> [a] filter' _ [] = [] filter' f (x:xs) | f x = x:rest | otherwise = rest where rest = filter' f xs
To embed this project on your website, copy the following code and paste it into your website's HTML: