Reverse iterator in Rust
The way to get reverse iterator in Rust language.
Code:
fn main() {
let a = vec![1,2,3];
for i in a.iter().rev() {
println!("{}", i);
}
}
Result:
3
2
1
Do you know more good way or Do you have any comments? Give me comments!