摘要: #计算机程序的构造和解释习题解答*Structure and Interpretation os Computer Programs* Exercises Answer##第二章 构造数据抽象###练习2.17```groovy (define last-pair-1 (lambda (input) (if (= (length input) 1) input (last-pair-1 (cdr input))))) ;因为length的定义是递归定义的,所以如果是一个长列表,用length会非常耗时 ;last-pai... 阅读全文
posted @ 2014-03-09 12:21 Liqiang Gao 阅读(287) 评论(0) 推荐(0) 编辑