Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f . g
- compose2 = f => g => x => f(g(x))
- double = n => n * 2 -- f
- inc = n => n + 1 -- g
- x = 3
- compose2 (double)(inc)(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement