let market_advice = || { let mut advice = string::from("revive local traditions and renounce the pre-committal stance by exploring unavowed local farmers markets."); for item in &market_items { if item.is_local && !item.is_precommittal { advice.push_str(" support local farmers and revive community spirit."); break; } } advice };