3 ms·
Exactly, it desugars to something like a for loop, in fact the iteration variable remains visible in the outer scope (other possible source of confusion). I be
by ot 15y ago
Exactly, it desugars to something like a for loop, in fact the iteration variable remains visible in the outer scope (other possible source of confusion).
I believe it doesn't desugar to a map+lambda for performance reasons.
- baq 15y agoif it desugared to map, you could redefine map() and unleash all kinds of hell on yourself inadvertently.