码迷,mamicode.com
首页 >  
搜索关键字:sicp    ( 322个结果
SICP:2,4 序对的过程性表示方法
Here are the fully expand steps:0) at the beginning , we get expression ``(car (cons 1 2))``1) replace ``cons`` using ``(lambda (m) (m x y))`` , we ge...
分类:其他好文   时间:2015-04-09 00:49:11    阅读次数:113
我的CSDN生涯
2014年2014年某月某日——开通CSDN博客,该博客至今(2015.4.6)访问仅9346次2015年02月03日——新开通CSDN博客,并进行博客搬家,旧博客至今(2015.4.6)访问仅9346次 02月10日——博客专栏的申请审核通过 03月23日——积分1500分,排名12565 03月25日——日访问量突破800 03月月底——专栏:SICP练习成为推荐专栏 04月04日——...
分类:其他好文   时间:2015-04-07 10:01:34    阅读次数:159
SICP:1.43重复调用函数
#lang racket(define (repeated f n) (define (compare f1 f2) (lambda(x) (f1 (f2 x)));lambda );compare (define (doing result n) (if (= ...
分类:其他好文   时间:2015-04-04 19:43:18    阅读次数:155
SICP:1.41 double过程
#lang racket(define (double f) (lambda (x) (f (f x)) );lambda );double(define ((double1 f) x) (f (f x)) )(define (inc x) (+ x 1) );inc(((d...
分类:其他好文   时间:2015-04-04 18:00:30    阅读次数:170
SICP: 第一章 之 牛顿法
#lang racket(define (newton-transform g) (define dx 0.00001) (define (deriv g) (lambda (x) (/ (- (g (+ x dx)) (g x)) dx) );lambda );de...
分类:其他好文   时间:2015-04-04 12:01:26    阅读次数:130
【SICP练习】152 练习4.8
练习4-8原文Exercise 4.8. “Named let” is a variant of let that has the form (let )The and are just as in ordinary let, except that is bound within to a procedure whose body is a...
分类:其他好文   时间:2015-04-01 11:30:09    阅读次数:149
【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->combination that reduces...
分类:其他好文   时间:2015-04-01 09:35:32    阅读次数:153
【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 environment in which all of the...
分类:其他好文   时间:2015-04-01 09:31:37    阅读次数:178
【SICP练习】149 练习4.5
练习4-5原文Exercise 4.5. Scheme allows an additional syntax for cond clauses, ( => ). If evaluates to a true value, then is evaluated. Its value must be a procedure of one argument; this procedure is th...
分类:其他好文   时间:2015-03-31 22:34:57    阅读次数:241
【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 evaluates to false, false is...
分类:其他好文   时间:2015-03-31 14:45:56    阅读次数:156
322条   上一页 1 ... 11 12 13 14 15 ... 33 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!