Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Apr 17th, 2018 51 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. fn main() {
  2.     let x = Some(Ok::<_, &'static str>(5));
  3.     if let Some(x) = x.and_then(Result::ok) {
  4.         println!("{}", x);
  5.     }
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top