Class 11 Objectives
At the end of today's class you should
KNOW:
- That the recursive nature of functions over lists follows naturally from
the self-reference in the list data definition.
- That every arrow in a data definiton should be accounted for with a function call in the template.
BE ABLE TO:
- Write functions that process a list of structs
Sample Exam Question:
Using the data definitions for ListOfCourse and Course that we developed in class, write a function upper-level-courses
that consumes a list of courses and a department and produces a list of all courses at the 3000- or 4000-level offered by that department.