A closure is an anonymous function declared within a block. The function has access to the local variables for the duration of its life.
More about closures is available here.