Closure (computer programming)

ID: closure-computer-programming

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.

New to topics? Read the docs here!