Advertisement
VladNitu

W2L1(Lecture3)-FP24-Vlad-Batch2Q2-WL

Feb 18th, 2024
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. applyN :: Int -> (a -> a) -> a -> a
  2. applyN n f x
  3. | n < 1 = x
  4. | n == 1 = f x
  5. | otherwise = f (applyN (n - 1) f x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement