In computer science, a closure is a function that has an environment of its own. In this environment, there is at least one bound variable (a name that has a "value", such as a number). The closure's environment keeps the bound variables in memory between uses of the closure.