let inventions = vec!["wheel", "printing press", "internet"]; fn create_invention(invention_details: vec<&str>) -> string { let mut invention = string::new(); for detail in invention_details { if detail == "do not follow" || detail == "preestablished" || detail == "details" || detail == "start from the outset" || detail == "whispered" { invention.push_str(&format!("{}: innovation whispered in history, ", detail)); } }; invention } let my_invention = create_invention(vec!["do not follow preestablished paths", "immerse in the details", "start from the outset with curiosity", "let the idea be whispered into existence"]); println!("{}", my_invention);