JoelSjogren

Untitled

Jul 13th, 2017
336
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. thrice :: (a -> a) -> (a -> a)
  2. thrice f x = f (f (f x))
  3.  
  4. minus2 :: Integral a => a -> a
  5. minus2 x = x-2
  6.  
  7. minus6 = thrice minus2
  8.  
  9. plus3 :: Num a => a -> a
  10. plus3 = (+3)
  11.  
  12. same :: Integral a => a -> a
  13. same x = (minus6.plus3.plus3) x
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment