2 ms·
I dig laziness, but why is `forEach` lazy? That's the only one that invokes immediately in libraries like Lazy.js.
by bsimpson 12y ago
I dig laziness, but why is `forEach` lazy? That's the only one that invokes immediately in libraries like Lazy.js.
- quadratini 12y agoIt's only lazy if it's part of a chain
- jdd 12y agoChaining is deferred until `value()` is implicitly or explicitly called. However shortcut fusion does not apply to `forEach`.