加载中
【SICP练习】146 练习4.2

练习4-2 原文 Exercise 4.2. Louis Reasoner plans to reorder the cond clauses in eval so that the clause for procedure applications appears before the clause for assignments. He a...

【SICP练习】63 练习2.34

 练习2.34 书中一开始有2个式子,一个是原式,一个根据Horner规则构造出的式子。而我们同样也可以将待求得式子写成这种方式,而且可以更进一步——那就是写成Lisp的前序表示: (+ 1 (* ...

2015/09/08 21:49
1
【SICP练习】148 练习4.4

练习4-4 原文 Exercise 4.4. Recall the definitions of the special forms and and or from chapter 1: ● and: The expressions are evaluated from left to right. If any expression eva...

【SICP练习】150 练习4.6

练习4-6 原文 Exercise 4.6. Let expressions are derived expressions, because (let (( ) … ( )) ) is equivalent to ((lambda ( … ) ) ) Implement a syntactic transformation let->co...

【SICP练习】147 练习4.3

练习4-3 原文 Exercise 4.3. Rewrite eval so that the dispatch is done in data-directed style. Compare this with the datadirected differentiation procedure of exercise 2.73. (You ...

【SICP练习】151 练习4.7

练习4-7 原文 Exercise 4.7. Let* is similar to let, except that the bindings of the let variables are performed sequentially from left to right, and each binding is made in an en...

【SICP练习】28 练习1.34

 练习1.34 这道题我一开始不用Edwin的时候觉得是会陷入无限循环之中。后来在Edwin上试了一下才发现会报错,输出如下: (f f) ;The object 2 is notapplicable. ;To continue, call RESTA...

2015/09/08 21:45
20
【SICP归纳】1 过程和代换模型

《计算机程序的构造和解释》这本书的目标并不是讲解一门编程语言的语法等,它是一种方法。不是在向你陈述知识,而是在教你如何做到想要做的东西。它是一个过程,一个精神。这些引导过程的东西...

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部