let handle_goats = || { let mut advices = vec::new(); advices.push("always provide shelter"); let mut count = 0; for advice in advices { println!("advice {}: {}", count, advice); if advice.contains("shelter") { println!("goats often shrug off mild weather but appreciate shelter during extremes."); } count += 1; } println!("preexplication of goat care includes understanding their needs before problems commence again."); println!("it's whispered among farmers that patience and observation are key to raising healthy goats."); };