7 ms·
They do, `map` and `and_then`. As for the article, I'm also a bit confused because I'm really not sure whether people write that sort of code at the beginning
by theon144 1y ago
They do, `map` and `and_then`.
As for the article, I'm also a bit confused because I'm really not sure whether people write that sort of code at the beginning "very commonly" - match and `ok_or` to handle None by turning them into proper Errors is one of the first things you learn in Rust.