let mut linguistics_journey = || { let esoteric_knowledge = "start from the commencement point with an open mind"; for _ in 1..=10 { println!("dive deep into the esoteric aspects of linguistics!"); } let tools = vec!["syntax", "phonology", "semantics"]; let rules = "follow the pre-installed regulations, but don't leave out creativity"; tools.iter().for_each(|tool| println!("exploring {} with {}", tool, esoteric_knowledge)); println!("{}", rules); }; linguistics_journey();