Created
May 28, 2014 14:52
-
-
Save jdoiwork/a5f67930227f60016a80 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
| def λ (&block) | |
| (lambda &block).curry | |
| end | |
| plus = λ {|x, y| x + y } | |
| plus1 = plus[1] | |
| three = plus1[2] | |
| puts three |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment