Stop learning alone!

Learn faster and stay on-track by joining this free class with other self-learners.

Register for Structure and Interpretation of Computer Programs now.

Structure and Interpretation of Computer Programs

Class length: 13 weeks. Start anytime.

Creator: kday

Status: Established

Join this class!

2.6

Can anyone explain this one? When I run (add-1 zero) it just returns #procedure. I don't understand how this is suppose to be one.

dtmetz
2 years ago

Reply


The numbers represent how many times (f) is going to be composed on the value x. So 0 will be just x. 1 will be f(x). 2 will be f(f(x)) and so on.

meowzero
2 years ago

Reply

I think I see - essentially just the count on the stack.

dtmetz
2 years ago

Reply

* Markdown Cheatsheet:

Link:
[clickable text](http://www.example.com)

New Paragraph:
Hit enter twice

Main heading:
# Main Heading Text

Sub-heading:
## Sub-heading Text

List:
* item 1
* item 2
* item 3

Italics:
*italicized text*

Bold:
**bold text**

YouTube:
URL (http://www.youtube.com/watch?v=Ui4AYPcRkYE) turns into embed code

Full Markdown reference