More practical example of `while let` with iterators
dev-ardi opened this issue · 0 comments
dev-ardi commented
https://doc.rust-lang.org/rust-by-example/flow_control/while_let.html
Iterators have already been introduced, why not use an example of while let
that users might actually need to use?
while let Some(value) = iter.next() {}