This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I recommend executing this file, then reading it alongside its output. | |
# A closure is a block of code which meets three criteria: | |
# | |
# * It can be passed around as a value and | |
# | |
# * executed on demand by anyone who has that value, at which time | |
# | |
# * it can refer to variables from the context in which it was created | |
# (i.e. it is closed with respect to variable access, in the |
NewerOlder