Skip to content

Instantly share code, notes, and snippets.

@amonshiz
Last active August 29, 2015 14:12
Show Gist options
  • Save amonshiz/64d67960d26caa7001c9 to your computer and use it in GitHub Desktop.
Save amonshiz/64d67960d26caa7001c9 to your computer and use it in GitHub Desktop.
addFunction :: Int -> Int -> Int
addFunction x1 x2 = x1 + x2
-- addFunction 1 2 ==> 3
let add10 = addFunction 10
-- :t add10
-- add10 :: Int -> Int
-- add10 5 ==> 15
-- add10 100 ==> 110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment