Guest User

Untitled

a guest
Aug 18th, 2019
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main(){
  2. println!("Sorting a vector");
  3.  
  4. let mut v = vec![2, 1, 3, 4, 5, 5];
  5.  
  6. println!("Vector before sorting : {:#?}", v);
  7.  
  8. v.sort();
  9.  
  10. println!("Vector after sorting : {:#?}", v)
  11.  
  12.  
  13. }
RAW Paste Data