Detecting keypress

Names already existing in the containing scope are assigned into there. Python uses the nonlocal keyword for this behavior but doing it automatically is traditional in Lisp which Julia inherits from.

Detailed thread about this:

2 Likes