Please enable JavaScript.
Coggle requires JavaScript to display documents.
CLOSURE, Tail Call Optimization (TCO) - Coggle Diagram
CLOSURE
Def
-
-
Closure builds on this approach: for variables we need to use over time, instead of placing them in larger outer scopes, we can encapsulate (more narrowly scope) them but still preserve access from inside functions, for broader use. Functions remember these referenced scoped variables via closure.
-
in Mathematics: Closure is when the result of an operation (+ - / ...) on members of a set stays in the same set.
-
-
-
function instances
every time the outer function runs, a new inner function instance is created, and for each new instance, a new closure.
-