Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- applyN :: Int -> (a -> a) -> a -> a
- applyN n f x
- | n < 1 = x
- | n == 1 = f x
- | otherwise = f (applyN (n - 1) f x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement