Stdle #148 · option · 2026-11-01
What does this Rust snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
fn main() { let chain = Some(4) .map(|n| n + 1) .filter(|n| *n > 10) .map(|n| n * 2); println!("{:?}", chain);}Option