Revision of 1.3.2 Constructing Procedures Using Lambda from 14 July 2009 - 6:17pm

The revisions let you track differences between multiple versions of a post.

Printer-friendly versionPrinter-friendly version

Exercises

Exercise 1.34

Suppose we define the procedure

(define (f g)
  (g 2))

Then we have

(f square)
4

(f (lambda (z) (* z (+ z 1))))
6

What happens if we (perversely) ask the interpreter to evaluate the combination (f f)? Explain.

Comments

error?

I believe the pic below the paragraph

This construct is so useful that there is a special form called let to make its use more convenient. Using let, the f procedure could be written as”

is incorrect because it is identical to the one above.

typo

The code just after the paragraph

This construct is so useful that there is a special form called let to make its use more convenient. Using let, the f procedure could be written as”

should be this:


(define (f x y)
  (let ((a (+ 1 (* x y)))
        (b (- 1 y)))
    (+ (* x (square a))
       (* y b)
       (* a b))))

(see http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-12.html#%_sec_1.3.2)

Languge Interpreter Services

Nice Website containing full of Language knowledge ,
One of my friend has refered me for this Website

We provide Interpreter work and services in
all languages, for more info CALL US : +91 - 9873019933

Languge Interpreter Services in Noida
Languge Interpreter Services in NCR
Languge Interpreter Services in Delhi

www.apls.in/Interpretation

burberry trench coat

sell burberry quilted jacket UntKTCXB [URL=http://www.burberryoutlet-online2013.org/ - burberry outlet online[/URL - to take huge discount uIqEjQGd http://www.burberryoutlet-online2013.org/

revision of 1.3.2 constructing procedures using lambda from 14

What a stuff of un-ambiguity and preserveness of valuable familiarity about unpredicted emotions.

Here is my website sbobet

1.3.2 Constructing Procedures Using Lambda | SICP in Clojure

Quiero para darle las gracias por este gran excepcional ver !
I definitivamente amado poco de él. Tengo que libros marcados
mirar cosas que usted publique …

Here is my page … Cerrajer

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <hr> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.
  • Adds typographic refinements.

More information about formatting options