Closures
Jump to navigation
Jump to search
Internal
- [Functional_Programming#Closures|Functional Programming]]
- Java 8 Lambda Expressions
- Go Closures
Overview
A closure is an instance of a function that can reference non-local variables of that function with no restrictions. Java 8 lambda expression are different, in that they can only refer final local variables in the scope in which the lambda was declared.