Next | Functional Programming in Perl | 17 |
Very similar to Python
To make a closure, you write a method
That declares an anonyumous "inner class"
The returns another method
The syntax is incredible
And the inner class method is only allowed to close over final values
That is, immutable values
Next | Copyright 2005 M. J. Dominus |