Go Closures: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
=Overview=
=Overview=


Anonymous function that capture local variables.
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 [[Programming#Closures|here]].
More about closures is available [[Programming#Closures|here]].

Revision as of 04:25, 28 March 2016

Internal

Overview

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.