4 ms·
The closure itself is only being created once, it's essentially a singleton. Only if it would capture variables it would have to be recreated every iteration.
by WASDx 2y ago
The closure itself is only being created once, it's essentially a singleton. Only if it would capture variables it would have to be recreated every iteration.