Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

sort reverse rust

let mut vec = vec![1, 2, 3];

vec.reverse();

println!("{:?}", vec); // [3, 2, 1]

vec.sort();

println!("{:?}", vec) // [1, 2, 3]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #reverse #rust
ADD COMMENT
Topic
Name
4+6 =