Class 8 Objectives
At the end of today's class you should
KNOW:
- That arbitrarily-sized data can be modeled in Racket with a list
- The data definition for a list is self-referential
- The template for a function on a list is recursive
BE ABLE TO:
- Define a list of items using cons
- Extract pieces of a list using first and rest
- Use the list 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.