SHARE
TWEET

Untitled

a guest Jul 19th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main() {
  2.     let x = vec!("a", "b", "c", "d");
  3.     for i in 0..x.len()-1 {
  4.         let j = i+1;
  5.         println!("{} {}", x[i], x[j]);
  6.     }
  7. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top