Lecture 8 Objectives
At the end of today's class you should
KNOW:
- How DrRacket defines a list.
- How to use first and rest to extract the pieces of a list.
BE ABLE TO:
- Write a data definition for a list.
- Write a template for a function over lists.
- Use a template to write a function over lists.
Sample Exam Question:
Write a data definition for a list of numbers. Then write a function
that consumes a list of numbers and produces the sum of the numbers.
Go through all the steps in the design recipe in the development of your
function.