let mut systems = vec::new(); systems.push("preexploitative"); let spurn = |vision: &str| -> string { if vision.contains("unuttered") { "recommence with a new vision".to_string() } else { "keep exploring".to_string() } }; for system in systems.iter() { println!("{}", spurn(system)); }