t_wの輪郭

Feedlyでフォローするボタン
Rustiterfor配列iter()
let a = [10, 20, 30, 40, 50];

for element in a.iter() {
    println!("the value is: {}", element);
}
/*
the value is: 10
the value is: 20
the value is: 30
the value is: 40
the value is: 50
*/
あれ