Skip to content

Instantly share code, notes, and snippets.

@will-molloy
Last active December 22, 2019 02:25
Show Gist options
  • Save will-molloy/880b45cb537d5e74c5818a548d446345 to your computer and use it in GitHub Desktop.
Save will-molloy/880b45cb537d5e74c5818a548d446345 to your computer and use it in GitHub Desktop.
Currying (partial function application) in haskell
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