MASSACHVSETTS INSTITVTE OF TECHNOLOGY
Department of Electrical Engineering and Computer Science
6.001---Structure and Interpretation of Computer Programs
Spring Semester, 1999
Recitation -- Wednesday, March 10
Let's walk through the evaluation of (mul x y) with the tree structures below. Notice the pattern:
1. Adding New Types and Operators
A set is a mathematical object defined as a collection of unique objects (i.e. an element appears at most once in a set). To model sets, we need to build an implementation that supports several operations. Build an implementation for sets of symbols, using unordered lists as the basic representation. Try to use map, filter, and accumulate where appropriate.