let typewriter_experience = || { let mut rejuvenate = || println!("rejuvenating your love for vintage!"); let mut memos = vec::new(); let disaffirm_illegitimate = |memo: &str| !memo.contains("illegitimate"); for memo in memos.iter().filter(|&m| disaffirm_illegitimate(m)) { println!("processed memo: {}", memo); } if !memos.contains(&"preexpenditure") { memos.push("consider preexpenditure plans for maintenance."); } };