factorial example
module Main where
fact :: Integer -> Integer
fact 0 = 1
fact n = n * fact (n – 1)
main = print (fact 1000)
October 13th, 2008 in
Haskell
module Main where
fact :: Integer -> Integer
fact 0 = 1
fact n = n * fact (n – 1)
main = print (fact 1000)