RosettaCodeData/Task/Loops-Foreach/Rust/loops-foreach-1.rust

5 lines
87 B
Text
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
let collection = vec![1,2,3,4,5];
for elem in collection {
println!("{}", elem);
}