2010年7月12日

simply scheme 第十二章 练习

摘要: 12.1(define (addup nums) (if (empty? nums) 0 (+ (first nums)(addup (bf nums)))))12.2(define (acronym sent) (if(=(coun... 阅读全文

posted @ 2010-07-12 11:02 草头菜 阅读(103) 评论(0) 推荐(0) 编辑

2010年7月11日

simply scheme 第十一章 练习

摘要: 11.1(define (downup4 wd) (se wd (bl wd) (bl (bl wd)) (first wd) (bl (bl wd)) (bl wd) wd))11.2(defi... 阅读全文

posted @ 2010-07-11 20:37 草头菜 阅读(132) 评论(0) 推荐(0) 编辑

simply scheme 第九章 练习

摘要: 9.1(1) #(2) 34(3) (yan etim ta lal)(4) #: expects 1 argument, given 2: 10 159.2(define second (lambda (stuff)(first(bf stuff))))(... 阅读全文

posted @ 2010-07-11 12:12 草头菜 阅读(114) 评论(0) 推荐(0) 编辑

2010年7月6日

simply scheme 第八章 练习

摘要: 8.1(a e i o u)()0#f(16 144 0)(aioee)25(go d sunshi)8.2(keep vowel? 'birthday)(every first '(golden slumbers))(first '(golden slumbers)... 阅读全文

posted @ 2010-07-06 14:05 草头菜 阅读(140) 评论(0) 推荐(0) 编辑

2010年7月5日

simply scheme 第七章 练习

摘要: 7.2(let ((pi 3.14159) (pie '(lemon meringue))) (se '(pi is) pi '(but pie is) pie))7.3(define (superlative adjective wd) (se (word ... 阅读全文

posted @ 2010-07-05 23:09 草头菜 阅读(66) 评论(0) 推荐(0) 编辑

simply scheme 第六章 练习

摘要: 6.1 nowhere man,3,goes6.2 #t #f #f #t #t #t6.3 (define (sign number) (cond (( wd 13) (se (- wd 12) 'PM))))6.6 (define (teen arg) (if... 阅读全文

posted @ 2010-07-05 19:04 草头菜 阅读(126) 评论(0) 推荐(0) 编辑

2010年7月4日

simply scheme 第五章 练习

摘要: 5.1 (1)(I me mine) (2)(is empty) (3) 1234 (4) (23 45) (5) "" (6) () (7) 6 (8) ("" "") (9) 2 5.2 (define (f1 wd1 wd2) (sentence (bf w... 阅读全文

posted @ 2010-07-04 13:38 草头菜 阅读(86) 评论(0) 推荐(0) 编辑

simply scheme 第四章 练习

摘要: 4.1 (+ 8 (* 2 12)) 4.2 A->(B +)->(C *) 4.4 (1) two return values (2) wrong expression (3) no argument (4) less argument... 阅读全文

posted @ 2010-07-04 10:55 草头菜 阅读(102) 评论(0) 推荐(0) 编辑

2010年7月3日

simply scheme 第三章 练习

摘要: 3.1 Translate the arithmetic expressions (3+4)×5 and 3+(4×5) into Scheme expressions, and into plumbing diagrams.(× (+ 3 4) 5) (+... 阅读全文

posted @ 2010-07-03 18:43 草头菜 阅读(118) 评论(0) 推荐(0) 编辑

simply scheme 第二章 练习

摘要: ExercisesUse the functions program for all these exercises.2.1 In each line of the following table we’ve left out one piece of inform... 阅读全文

posted @ 2010-07-03 18:26 草头菜 阅读(136) 评论(0) 推荐(0) 编辑

导航