Content deleted Content added
No edit summary |
m copyedit |
||
Line 1:
In [[programming language theory]], a '''non-local variable''' is a variable that is not defined in the local scope. While the term can refer to global variables, it is primarily used in the context of [[nested function|nested]] and [[anonymous function]]s where
== Example ==
Line 13:
</source>
In
<source lang=haskell>
outer = let c = 1 in map (\x -> x + c) [1, 2, 3, 4, 5]
|