#026
Jan 1, 2023
26. Collecting into Option
Rust’s option implements FromIterator too!
Use it when you want to get None if there is a None element and values otherwise.
| |
or values …
| |
Rust’s option implements FromIterator too!
Use it when you want to get None if there is a None element and values otherwise.
| |
or values …
| |