rust functional for loop code example
Example: for loops in rust
for x in 0..10 {
println!("{}", x); // x: i32
}
//abstract:
for var in expression {
code
}
for x in 0..10 {
println!("{}", x); // x: i32
}
//abstract:
for var in expression {
code
}