Guest User

Untitled

a guest
Sep 12th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. fn main() {
  2. let mut x = vec![1, 2, 3, 4];
  3. x.insert(1, 45);
  4. x.insert(2, 33);
  5. x.remove(3);
  6. x.push(200);
  7. x.pop();
  8. for i in 0..x.len() {
  9. print!("{} ", x[i]);
  10. }
  11. }
Add Comment
Please, Sign In to add comment