Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyRustiterators and adaptersSingle-choice MCQ

What is the value of `n` after this code runs?

fn main() { let words = vec!["a", "bb", "ccc"]; let n = words.iter().map(|w| w.len()).filter(|&len| len > 1).count(); println!("{}", n); }