Class 2: Structures underlying evaluation

This class will be held in the location of our labs, MI 302.

Slides

Display version (pdf)

Reference Reading

These readings are not required; however, they will be very useful to review this material and/or gain more depth.

Handouts

Homework

These exercises are to be turned in in a single file called ex.scm in a folder called class02, using the submit program as in labs.

  1. Write a function called my-append which has the same behavior as the append function built-in to Scheme. (Your function only has to handle the case when there are exactly two arguments, and both are lists.)
  2. Write a function called count-down which takes a (positive) integer n and produces a list with integers from n down to 1, in that order.
    So for instance (count-down 4) should produce the list (4 3 2 1).