Skip to content

Commit

Permalink
updating scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
psholtz committed Feb 23, 2015
1 parent c8520fd commit de46263
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Section-3.2/mit-scheme/exercise3-10.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ Recall from section 1.3.2 that ```let``` is simply syntactic sugar for a procedu
(let ((<var> <exp>)) <body>)
```

is interpreted as an alternate syntax for

```scheme
((lambda (<var>) <body>) <exp>)
```

Use the environment model to analyze this alternate version of ```make-withdraw```, drawing figures like the ones above to illustrate the interactions

```scheme
(define W1 (make-withdraw 100))
(W1 50)
(define W2 (make-withdraw 100))
```

Show that the two versions of ```make-withdraw``` create objects with the same behavior. How do the environment structures differ for the two versions?

Solution
--------

Expand Down

0 comments on commit de46263

Please sign in to comment.