首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

SICP练习题1.6

2012-10-28 
SICP习题1.6自己没想明白这道题,答案是 cloverprince 给的一个CSDN的链接 http://blog.csdn.net/xuanyun/a

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 不会出问题呢?是不是因为它是“正则序”?

热点排行