Skip to content

Instantly share code, notes, and snippets.

@jiripospisil
Created April 3, 2013 17:49
Show Gist options
  • Save jiripospisil/5303497 to your computer and use it in GitHub Desktop.
Save jiripospisil/5303497 to your computer and use it in GitHub Desktop.
fac :: Int -> Int
fac 0 = 1
fac n = n * fac(n - 1)
-- fac 100 => 0
fac 0 = 1
fac n = n * fac(n - 1)
-- fac 100 => 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment