Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created March 8, 2015 09:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save shigemk2/db70f7132d2a47bc9d99 to your computer and use it in GitHub Desktop.
add = \x y -> x + y
add' = \x -> \y -> x + y
main = do
print $ add 3 4
print $ add' 3 4
print $ (\x y -> x + y) 3 4
print $ (\x -> \y -> x + y) 3 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment