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?
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?