Agree OK, but don't expect a big difference 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News I posted a study guide for the final (Mike O'Donnell)
Re: News Study questions for problem 1 (Mike O'Donnell)
Re: Question can we use higher-order procedures? (Ivan Beschastnikh)
Date: 2002, Dec 08
From: Mike O'Donnell <odonnell@cs.uchicago.edu>

It will be OK to use the built-in Scheme higher-order procedures (such as map) as well as the ones that we have defined (accumulates, etc.) in the later problems. But I don't expect it to make a big difference. I crafted the problems so that you could write recursions directly. If you see a chance to use the higher-order procedures, go ahead, but I don't recommend that you focus your attention on that point.

On the other hand, you should solve problems 1-3 and 5 purely functionally, without using modifications to the state. In problem 4, you should implement functional parts of Scheme using functional programming methods, and resort to state modifications only if I ask you to implement a procedure or special form that modifies state.

I'm mentioning this because I realized that there is a very tempting way to define two of the procedures in problem 1 with state modification. But I'd like you to find the purely functional definitions, which are very simple and elegant.




Mike O'D.


to: "OK, but don't expect a big difference"