Guest User

Untitled

a guest
May 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. fn myfunc(a: Option<i32>, b: Option<i32>)-> Option<i32> {
  2. Some(a? + b?)
  3. }
  4.  
  5. fn main() {
  6. println!("{:?}", myfunc(Some(1), Some(2)));
  7. }
Add Comment
Please, Sign In to add comment