Class 4: Lambda

Slides

Display version (pdf).

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

Handouts

Homework

Sumbit your solutions to the following exercises electronically in a file called ex.scm contained in a folder called class04.

Write the following functions as described in the slides. Use higher-order functions such as map and filter as well as the function-creator lambda to write these without (explicitly) using recursion.

  1. The function (facsum n) from slide 7.
  2. The function (my-factorial n) from slide 7.
  3. The function (my-length n) from slide 7.