[Haskell-cafe] First questions!

Eoin C. Bairéad ebairead at gmail.com
Thu Sep 2 08:49:12 EDT 2010

Example 2

Prelude> let fac n = if n == 0 then 1 else n * fac (n-1)

How does it know to stop ?
and why does fac 2.5 hang?



Eoin C. Bairéad
Dublin, Ireland
Áth Cliath, Éire

More information about the Haskell-Cafe mailing list