Last active
July 15, 2016 21:17
-
-
Save WillNess/5016202 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
B is simply defined as | |
B f g x = f (g x) | |
When we supply it with two args, | |
it still needs the third. (B f g) needs one more argument. | |
Let's see what is B B B. It supplies two args to the first B, | |
so we need to add the third there: | |
B B B f = B (B f) | |
and so we need two more: | |
B B B f g x = B (B f) g x | |
= (B f) (g x) | |
= B f (g x) | |
and so there's need for one more argument, | |
B B B f g x y = B f (g x) y | |
= f (g x y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment