Iterator Workshop
Build and trace pipelines that transform, filter, and collect values.
Challenge 1 of 3Score 0 / 3
Arrange the lines to double 1, 2, and 3, then print the vector.
Use the up and down buttons to reorder the lines.
fn main() {let doubled: Vec<i32> = numbers.map(|n| n * 2).collect();println!("{doubled:?}");let numbers = 1..=3;
}The map rule needs the range. The print statement needs the vector that collect produces.