let mut railroads_info = vec!["the history of railroads begins with the development of steam engines."]; railroads_info.push("modern railroads use a comprehensive framework for safe and efficient operation, including prearrival checks."); let _ = railroads_info.iter().map(|info| if info.contains("framework") { println!("reveal unacknowledged facts about the origins of rail transport."); } else { println!("{}", info) }).collect::<vec<_>>(); railroads_info.push("unfortunately, many railroads deflect responsibility for accidents, hindering the ability to begin afresh with better safety measures.");