miniblog.
← Back to all posts
Wilfred Hughes
Jun 23, 2022 at 17:10
The Rust docs include a surprisingly readable example of how `for` loops desugar into essentially a while loop with a pattern match:
https://doc.rust-lang.org/nightly/std/iter/#for-loops-and-intoiterator
std::iter - Rust
Composable external iteration.