2 ms·
But foreach is a function. The weird thing about your pattern is that class.a() and class.b() may have side effects and don’t seem to depend on i at all. If I
by goalieca 8y ago
But foreach is a function.
The weird thing about your pattern is that class.a() and class.b() may have side effects and don’t seem to depend on i at all. If I were to optimize this loop or even make it parallel, then I’m certainly missing some information. Some information that could be captured by another expression.