> A for expression extracts values from an iterator, looping until the iterator is empty.
They look like this:
for i in 1..10 {
println!("{i}");
}
And they're totally fine to use in Rust, I agree that the article is not exactly accurate here.EDIT: Okay you edited your comment to say this doesn't count. Sure. This is what the author of the post was talking about, though.