University of Washington • CSE583 • D. Notkin © 2000
40
First-class functions
lFunctions are themselves data values that can be passed around and called later
–Which function to call can be computed as any other expression can be
lThis enables a powerful form of abstraction where functions can take other functions as parameters
–These parameterized functions are sometimes called functionals