Lesson 5: Functions That Return Functions

Outline:

  1. Recap: higher-order functions
    • map and filter
    • fold-left vs. fold-right
  2. Functions that return functions
  3. Lazy lists
  4. Wrap-up

What’s next

Upcoming events/assessments:

  • CS Bits and Bytes tomorrow at 3:30pm in Olin 304/306/308: Welcome New Majors! :D
  • Assignment 4 is due tonight
  • Assignment 5 is released and due Friday night
  • Quiz 1 will be this Friday

What you should do now:

  • Read the assigned readings (see below)
  • Finish and submit Assignment 4
  • Work on Assignment 5
  • Re-do previous classwork, homework, exercises, and/or optional extensions to practice for the quiz

Reading assignment (to be completed by the next class):

More on higher-order functions (from today):

Intro to C (for next time):