Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Prelude hiding (map, iterate)
- map :: (a -> b) -> [a] -> [b]
- map f xs = unfold null (f . head) (tail) xs
- iterate :: (a -> a) -> a -> [a]
- iterate f x = unfold (\x -> False) id f x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement