SICP exercise 3.8 - Why the procedure works? (I think it's about the environment)?

Think of s as a special variable tied just to your procedure, keeping its value between its invocations. Since you're going through SICP it should be clear that it's part of the environment that the procedure attached to f lives in.

There is one important thing, when you use (define f .......) without brackets around f, you're defining a value, which "body" is evaluated only once. Therefore, mutable value is initialized only once. And it's also captured by the resulting lambda function, that can do anything with it, but not visible from anywhere else, because it's inside the scope of our definition.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions