Designing Functions A function’s domain is the set of all inputs it might possibly take as arguments. A function’s range is the set of output values it might possibly return ...
Higher Order Functions are enabled by Environments Higher-order Function: A function that takes a function as an argument or returns a function as a return value. def apply_twice(f, x): return...
Lambda Expressions Expressions that evaluate to a function. We can directly assign a name to a function without defining it in our frame with def x = 10 square = x * x ...
CS61A: Function Currying
CS61A: Functional Abstraction
A new version of content is available.