title: Capture a variable in the closest outer scope
body: <p>In Julia, all variable assignments in a function are local by default, but you can use the <code>global</code> keyword to assign to a global variable instead. How to assign to a variable to an outer but non-global scope?</p>