Created
April 8, 2014 16:37
-
-
Save lsmag/10153103 to your computer and use it in GitHub Desktop.
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
# suponha essa função em haskell | |
add a b = a + b | |
# currying é fácil | |
add2 = add 2 | |
add2 4 # 6 | |
# Será que isso é bacana? | |
add(a, b) = a + b | |
# Opção 1 | |
add2 = add(2] | |
# Opção 2 | |
add2 = add(2 ...) | |
add2(4) # 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment