fork download
  1. fn main() {
  2. let mut v = vec![3, 1, 4, 1, 5];
  3. v.sort();
  4. v.dedup();
  5. v.reverse();
  6. println!("{:?}", v);
  7. }
  8.  
Success #stdin #stdout 0s 4156KB
stdin
Standard input is empty
stdout
[5, 4, 3, 1]