How do I get the current element in a for loop in Rust?

前端 未结 0 770
面向向阳花
面向向阳花 2021-02-20 14:14

I have a for loop:

let list: &[i32]= vec!(1,3,4,17,81);


for el in list {
 println!("The current element is {}&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题