Created
April 3, 2015 12:49
-
-
Save akhileshs/d31351b45c517e2a7db9 to your computer and use it in GitHub Desktop.
This file contains 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
addThree :: Int -> Int -> Int -> Int | |
addThree x y z = x + y + z | |
factorial :: Integer -> Integer | |
factorial n = product [1..n] | |
lucky :: (Integral a) => a -> String | |
lucky 9 = "Lucky number nine!" | |
lucky x = "Sorry, you're out of luck!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment