SHARE
TWEET

Untitled

a guest Aug 18th, 2019 70 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
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