fn main() { let items = ["a", "b", "c"]; for (i, x) in items.iter().enumerate() { println!("{i}: {x}"); } }
iterate items with their index