3 ms·
The tricky thing here isn't first-class functions, but closures. For the example to work, the inner function construction has to implicitly capture the argument
by colorint 9y ago
The tricky thing here isn't first-class functions, but closures. For the example to work, the inner function construction has to implicitly capture the argument to the outer function.