摘要: ①循环?NO!请递归思考问题!手艹一个求列表中最大值代码,C语言中习惯性for扫一下比较出最大值。但是可以用递归!maximum'::(Ord a)=>[a]->amaximum' []=error "empty!"maximum' [x]=xmaximum' (x:xs) = max x (max... 阅读全文
posted @ 2015-02-08 00:04 Physcal 阅读(427) 评论(0) 推荐(0) 编辑