[ML][练习] 生成排列
来源:《ML 程序设计教程》3.13 求后继排列的问题 此例子使用的算法描述见:[Generate Permutation]. 操作大致分三步: 搜索,分段 搜索,交换 逆转 …
自定义的数据类型的 List Comprehensions 不能用吗?
看代码:module Main wheredata Week = Mon | Tue | Wed | Thu | Fri | Sta | Sun de…
haskell产生随机数的问题
rollDice n = getStdRandom (randomR (1,n)) :: IO Integer 则 mapM (x->rollDice 33) [1..6] 将产生6个[1..33]中的随机数, 但产生的随机数中可能有重…
Haskell monads 初学问疑
虽然学习没有什么捷径,但也不想走太多的弯路 在此,向过来人请教一下: 1.新手初学 monads 入门的书籍都有哪些 ?(yet another haskell tutorial ???…
SICP的讲义等 及 scheme
从北大数学院的链接上可以下载到 (http://http://www.math.pku.edu.cn/teachers/qiuzy/progtech/) 里面包含了MIT 开放课程 Structure and Interpretat…
能不能讲一下closure,正在看practical common lisp,就是理解不了这个概念
书上的例子是 (let ((count 0)) #'(lambda () (setf count (1+ count)))) the reference to count inside the LAMBDA form should be legal according…
[三道贩子] Haskell Weekly News: Issue 108
Haskell Weekly News: Issue 108 - March 7, 2009 http://sequence.complete.org/hwn/20090307 Announcements ---- storable 0.1 -- Storable type …
[三道贩子] Haskell Weekly News: Issue 111
Haskell Weekly News: Issue 111 - March 28, 2009 http://sequence.complete.org/hwn/20090328 Announcements ---- CHP package. Neil Brown [2]an…
closure应用一例 (Common Lisp实现)
http://bbs.chinaunix.net/thread-1260094-1-1.html http://bbs.chinaunix.net/thread-1261686-1-2.html (let ((s " …
[三道贩子] Real World Haskell book club
Matt Podwysocki set up a Real World Haskell book club, http://groups.google.com/group/real-world-haskell-book-club (a mailing list on goo…
[三道贩子] Haskell Weekly News: June 6, 2009
Haskell Weekly News: June 6, 2009 http://sequence.complete.org/hwn/20090606 Announcements ---- storable-record. Henning Thielemann announced…