Last active
December 22, 2019 02:25
-
-
Save will-molloy/880b45cb537d5e74c5818a548d446345 to your computer and use it in GitHub Desktop.
Currying (partial function application) in haskell
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
add :: Int -> Int -> Int | |
add x y = x + y | |
add3 :: Int -> Int | |
add3 = add 3 | |
main = print (add3 4) -- 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment