Slug: opt-map-01 · Paired reading: Chapter 2
Prompt
Implement fn parse_even(s: &str) -> Option<i32> that parses an i32 and
yields Some only when the value is even. No unwrap.
The curriculum, drills, tutor, and interviewer mode are for readers of Ace the Rust Interview. The code is printed in the Preface (Companion site access).
Don’t have the book yet? The landing page stays open — purchase unlocks this gym.
beginner · order 9
Slug: opt-map-01 · Paired reading: Chapter 2
Implement fn parse_even(s: &str) -> Option<i32> that parses an i32 and
yields Some only when the value is even. No unwrap.