首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

scip习题2.22

2012-09-16 
scip练习2.22为什么顺序会反?看看iter和cons的结构顺序就明白了(define (square-list items)(define (iter

scip练习2.22
为什么顺序会反?看看iter和cons的结构顺序就明白了

(define (square-list items)  (define (iter things answer)    (if (null? things)        answer        (cons (square (car things))                     (iter (cdr things) answer))))  (iter items '()))

热点排行