3 ms·
The function is implemented for option types in Rust, it's just not called 'fold', because there's no universal convention according to which functions with tha
by foldr 7y ago
The function is implemented for option types in Rust, it's just not called 'fold', because there's no universal convention according to which functions with that signature are folds.
https://doc.rust-lang.org/std/option/enum.Option.html#method.map_or_else https://doc.rust-lang.org/std/option/enum.Option.html#method...