3 ms·
I provided a Go example demonstrating that it does not. Your version 1. uses a slice of integers which completely misses the point 2. uses an IIFE which compl
by masklinn 7y ago
I provided a Go example demonstrating that it does not. Your version
1. uses a slice of integers which completely misses the point
2. uses an IIFE which completely misses the point
The point is to look at what happens when you close over the iteration variable.