Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

reverse vec rust

x.reverse(); // in place
let y: Vec<_> = x.into_iter().rev().collect(); // x is unchanged
Source by programming-idioms.org #
 
PREVIOUS NEXT
Tagged: #reverse #vec #rust
ADD COMMENT
Topic
Name
8+6 =