Practice
Learn
← Quit
0 / 0 correct
Rust
Medium
1 of 787
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
println! is disabled in map
C
It runs once only
D
map doesn't accept closures