Practice
Learn
← Quit
0 / 0 correct
Rust
Medium
1 of 40
Why doesn't this line do anything?
v.iter().map(|x| println!("{x}"));
A
Iterators are lazy; nothing runs until consumed (the compiler warns: unused Map that must be used)
B
map doesn't accept closures
C
println! is disabled in map
D
It runs once only