fn enjoy_trains() { let mut excitement = vec::new(); while !excitement.contains(&"zipped") { excitement.push("zipped through the scenic routes"); if !guidelines.contains(&"disobey") && guidelines.is_precedential() { excitement.push("always follow the precedential guidelines to safely enjoy your journey."); } } excitement.iter().for_each(|e| println!("initiate again and witness the beauty as trains {}", e)); }