RosettaCodeData/Task/Loops-N-plus-one-half/Rust/loops-n-plus-one-half-3.rust
2019-09-12 10:33:56 -07:00

9 lines
159 B
Text

fn main() {
println!(
"{}",
(1..=10)
.map(|i| i.to_string())
.collect::<Vec<_>>()
.join(", ")
);
}