Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let x = vec!("a", "b", "c", "d");
- for i in 0..x.len()-1 {
- let j = i+1;
- println!("{} {}", x[i], x[j]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement