老潘已转到http://www.panxingzhi.net/。所有旧文章如有改动,此处将不再更新。谢谢。 I've moved to http://www.panxingzhi.net/. Updates on old posts are not applied here. Thanks.

SICP-2.7 solution

(define (upper-bound i) (cdr i))
(define (lower-bound i) (car i))

我习惯把小的放左边。默认了这种行为,没做检查。





0 条评论:

添加评论