- Intent
- Produce a new function, by caching one or more of the original arguments
- Motivation
- Very often we use a function with one of it's complex arguments over and over again. We want to speed the avaluation.
- Implementation
- return an anonymous function
- Example
$x = function($y) {
return some_function($x,$y);
}