摘要: 学习步骤 1 函数式编程的思想 http://blog.csdn.net/crazyhacking/article/category/1280842 2 haskell初步 参考自己的学习笔记 3haskell进阶 学习资料 使用书本:《七周七语言》 英文书本: http://learn... 阅读全文
posted @ 2012-12-04 14:33 唐僧吃肉 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 注意处理相同的元素 1快排 qsort []=[] qsort (h:t)=(qsort(filter (h) t)) num (h:t)=filter (==h) (h:t) 2冒泡 (1) bubble_once [] = [] bubble_once [x] = [x] bu... 阅读全文
posted @ 2012-12-04 14:28 唐僧吃肉 阅读(367) 评论(0) 推荐(0) 编辑
摘要: -- Standard list functions module PreludeList ( map, (++), filter, concat, concatMap, head, last, tail, init, null, length, (!!), f... 阅读全文
posted @ 2012-12-04 13:17 唐僧吃肉 阅读(280) 评论(0) 推荐(0) 编辑