Lecture 25 Objectives
At the end of today's class you should
KNOW:
- That accumulator-style functions can be more efficient than the
kinds of recursive functions we have written so far.
- That accumulator-style programming is the style of programming used in
many other programming languages.
BE ABLE TO:
- Convert a Scheme program to a program that accomplishes the same
task "accumulator-style".
Sample Exam Question:
In Homework 11, you are writing functions that model a Discussion Board. Write an accumulator-style function get-unread-messages that consumes a username, a course title and a forum title and produces a list of the messages in the named forum that the user with the given username has not yet read.