
SICP
scgillian
这个作者很懒,什么都没留下…
展开
-
LISP学习
用的DrRacket平台 #lang racket (* 5 6) (define (square x) (* x x)) (define (sum-of-squares x y) (+ (square x) (square y))) compound procedure cond (if ) (define (ab原创 2013-01-10 23:42:45 · 1404 阅读 · 2 评论 -
SICP ch2 building abstractions with Data学习笔记
compound structure: Pair use con to generate a pair (define x (cons 1 2)) Representing rational numbers (define (make-rat n d) (cons n d)) (define (numer x) (car x)) (define (denom x) (cd原创 2013-01-12 22:10:04 · 1248 阅读 · 0 评论