A closure is a function that stores (“closes over”) an environment (a set of captured variables) and another function that uses that environment.
A closure is a function that stores (“closes over”) an environment (a set of captured variables) and another function that uses that environment.