DEV Community

Discussion on: Aha! Understanding lifetimes in Rust

Collapse
 
johannesvollmer profile image
Johannes Vollmer

Nice. Did you know that Option.and_then(|x| Some(x.name)) is the same as Option.map(|x| x.name)?