3 ms·
That's any language that has scoping. I think what you're searching for is something like using lambda {} that captures the outer scope. I used lambda actuall
by jeremymcanally 16y ago
That's any language that has scoping. I think what you're searching for is something like using lambda {} that captures the outer scope.
I used lambda actually to introduce some middle schoolers to capturing behavior in Ruby. It worked well.