Closure (computer programming) (source code)

= Closure
{disambiguate=computer programming}

= Programming closure
{synonym}

A <function> together with the bindings of variables from its defining environment. A mutable captured variable makes successive calls stateful. Sharing such a closure between copied <iterators> can violate the promised independent enumeration even when their current values are copied separately.