Contact: aviboots(AT)netvision.net.il
39,872 questions
51,796 answers
573 users
fn main() { let s = "Rust Programming Language"; let length_without_spaces = s.chars().filter(|&ch| !ch.is_whitespace()).count(); println!("Length without spaces: {}", length_without_spaces); } /* run: Length without spaces: 23 */