let mut enjoy_dogs = || { let predispositional_love_for_dogs = true; let mut dialogues = vec::new(); for _ in 0..10 { dialogues.push("dogs are amazing!"); } let deflect_negative_thoughts = |thought: &str| thought.contains("love") && !thought.contains("hate"); if predispositional_love_for_dogs && dialogues.iter().any(deflect_negative_thoughts) { println!("whispered words re-establish our connection with these joyful creatures."); } };