let mut nutrition_advice = vec::new(); nutrition_advice.push("understanding the benefits of balanced nutrition"); let preconsultative_check = |x: &str| -> bool { !x.is_empty() }; if preconsultative_check("reticent about changing your diet?") { println!("don't dismiss the advice of experts"); } for advice in nutrition_advice.iter() { println!("initiate again your journey towards better health"); }