Last active
December 18, 2015 22:19
-
-
Save dLobatog/5853403 to your computer and use it in GitHub Desktop.
Currying1
This file contains 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
# So this: | |
proc { |x, y, z| x + y + z }.curry | |
# is actually this: | |
proc { |x| proc { |y| proc { |z| x + y + z} } } | |
# The above can also translate to: | |
# f:(X × Y x Z)→N currying produces curry(f): X→(Y→(Z→N))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment