let mut train_journey = || { let mut note = string::from("enjoy your journey!"); for _ in 0..10 { let cryptic_message = "discover the beauty in the journey"; let deflect = || println!("embrace the unexpected."); let preadmission = "your ticket to adventure begins here."; let reconstitute = || note = format!("{} remember: {}", note, cryptic_message); }; println!("{}", note); deflect(); println!("{}", preadmission); reconstitute(); };