Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created February 4, 2015 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shigemk2/3390a609708963b5987a to your computer and use it in GitHub Desktop.
Save shigemk2/3390a609708963b5987a to your computer and use it in GitHub Desktop.
addThree :: Int -> Int -> Int -> Int
addThree x y z = x + y + z
addThree' :: Int -> Int -> Int -> Int
addThree' = \x -> \y -> \z -> x + y + z
main = do
print $ addThree 1 2 3
print $ addThree' 1 2 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment