[三道贩子] Haskell Weekly News: Julyl 18, 2009
Haskell Weekly News: Julyl 18, 2009 http://sequence.complete.org/hwn/20090718 Announcements ---- GHC 6.10.4. Ian Lynagh announced a new patc…
CPid 和 Word32 之间的转换
fromIntegral CPic 可以得到 Word32 那么反过来如何转换呢? 有时候 haskell 的类型真是让我恶心……同一个机器类型有无数表现方式………
haskell 如何读入中文文件呢?
在 ghci 下,用 readFile 和 readUTF8File 读入中文文件,怎么显示出来都是 xxxxxxxx 这样的形式呢? 而用 let x = "你好" 显示的就是汉字。 那么,正…
[三道贩子] Haskell Weekly News: June 13, 2009
Haskell Weekly News: June 13, 2009 http://sequence.complete.org/hwn/20090613 Announcements ---- purely functional lazy non-deterministic pro…
"***"怎么理解?
import Control.Arrow ((***)) splitVerticallyBy,splitHorizontallyBy :: RealFrac r => r -> Rectangle -> (Rectangle, Rectangle) splitVertically…
SICP中的cons指令与PLT中的显示结果不同
欢迎使用 DrScheme, 版本 4.1.4 [3m]. 语言: Lazy Scheme; memory limit: 128 megabytes. > (cons 1 (list 1 2 3)) (1 . #) > (cons 1 (cons 1 nil)) …
lisp中tree的问题,谢谢
正在看practical common lisp,十三章中,第二节tree 1,Tree structure is traversed by following both CAR and CDR references for as long as the…
lisp钟macro到底是什么?
再c中的定义是 #define MAX( x, y ) ( ((x) > (y)) ? (x) : (y) ) 就是一个简单的替换 在编译器之外就可以实现 但在lisp中 (defmacro when (condi…
请教这是为什么?DrScheme中的string-set!
(define x "hello") x ==>"hello" (string-set! x 0 #p) ==>string-set!: expects type as 1st argument, given: "hello"; other arguments were: 0 #…
两种风格的代码有何不同啊?
winSSQ count noRed noBlue = do { let yesRed = [1..33] \ noRed; let yesBlue = [1..16] \ noBlue; bracket (openFile "ssqNum.txt" W…
[三道贩子] Haskell Weekly News: July 4, 2009
Haskell Weekly News: July 4, 2009 http://sequence.complete.org/hwn/20090704 Announcements ---- HLint 1.6. Neil Mitchell announced the releas…