Scope of variable

do is just syntax for an anonymous function, so you are still in local scope inside do blocks

1 Like