Capture a variable in the closest outer scope

Viewed 268

In Julia, all variable assignments in a function are local by default, but you can use the global keyword to assign to a global variable instead. How to assign to a variable to an outer but non-global scope?

1 Answers
Related