CS 111
Fall 2016
Introduction to Computer Science
Lab09: Higher-order functions
In this lab, you will treat functions as objects--something that can be passed to other (higher-order) functions as arguments or returned by (higher-order) functions.- higher0.py -- passing functions as arguments to (higher-order) functions
- higher1.py -- lambda notation
- higher2.py -- sum of cubes, multiple ways
- higher3.py -- returning functions from (higher-order) functions