A closure is a function value that references variables from outside its body.
Closure in GO: https://tour.golang.org/moretypes/25
Closure in C#:
Closure in Objective-C(need to set __block
):
http://riddleapple.logdown.com/posts/220371-objetive-c-note-the-block
Closure in JavaScript: http://www.w3schools.com/js/jsfunctionclosures.asp