Stdle #156 · iteration · 2026-11-09
What does this Rust snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
fn main() { for (i, x) in ['a', 'b', 'c'].iter() .rev() .enumerate() { print!("{}{} ", i, x); } println!();}Iteration