3 ms·
> Though in fairness getting an iterator abstraction to the same efficiency as a for loop requires pretty brutal optimisations That's the role of the compiler
by cultureswitch 4y ago
> Though in fairness getting an iterator abstraction to the same efficiency as a for loop requires pretty brutal optimisations
That's the role of the compiler and if Rust or C++ are anything to go by, it is more than capable to "see through" iterators.