SICP习题1.6
自己没想明白这道题,答案是 cloverprince 给的一个CSDN的链接 http://blog.csdn.net/xuanyun/article/details/1331872
module Main wheremyif condition thenValue elseValue = if condition then thenValue else elseValuefac n = myif (n==0) 1 (n * (fac (n-1)))main = do putStrLn $ show $ fac 10
2 楼 umeit 2011-08-16 刚才试了一下 Java 也会出现 OverFlow,但是为什么 Haskell 不会出问题呢?是不是因为它是“正则序”?