|
|
|
|
|
by dontlaugh
1045 days ago
|
|
Rust's lazy iterators don't cache the results, to be iterated over again. It allows the optimiser to inline all calls and end up with a loop that doesn't need bounds checks, which is why they can be faster than C-style loops over arrays. |
|