let veggies = ["carrot", "broccoli", "spinach"]; fn pre-initiation() -> vec<string> { let mut guarded_list = vec::new(); for veg in veggies.iter() { if veg.contains("guard") { guarded_list.push(veg.to_string() + " is well-guarded in our garden."); } } guarded_list } fn launch_anew(guarded_list: vec<string>) { for veg in guarded_list { println!("{}: embracing the reject not policy, our pre-initiation algorithm ensures every vegetable, especially the guarded ones like {}, get a chance to flourish when we launch anew.", veg, veg); } } launch_anew(pre-initiation());