Python
First-Class and Higher-Order Functions
Functions in Python are ordinary objects. They can be stored, passed, returned and built at runtime, and that fact underlies sorting keys, decorators...
First class functions, higher order functions, nested functions and closures.
2 notes
Functions in Python are ordinary objects. They can be stored, passed, returned and built at runtime, and that fact underlies sorting keys, decorators...
A closure is an inner function that keeps hold of variables from the function that created it, long after that function has returned.