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
println! is disabled in map
B
It runs once only
C
Iterators are lazy; nothing runs until consumed (the compiler warns: unused Map that must be used)
D
map doesn't accept closures