|
|
|
|
|
by jxcl
1255 days ago
|
|
You do get better about using the functional operators as you use them, and they can be incredibly powerful and convenient in certain operations, but in this case he's missing the simplest implementation of this function using the `?` operator: fn add2(x: Option<i32>, y: Option<i32>) -> Option<i32> {
Some(x? + y?)
}
|
|