4 ms·
I think the idiomatic way to write that is: fn add(x: Option<i32>, y: Option<i32>) -> Option<i32> { Some(x? + y?) }
by rom-antics 4y ago
I think the idiomatic way to write that is:
fn add(x: Option<i32>, y: Option<i32>) -> Option<i32> {
Some(x? + y?)
}