nick34992
4/12/2017 - 5:38 PM

Rust: Collect Range

Rust: Collect Range

fn main() {
	let rng = 0..20;
	let rngvec = rng.collect::<Vec<i32>>();
	println!("{:?}", rngvec);
}