let cautious_approach = fn(dialogues: vec<string>, preexplanatory_notes: vec<string>) -> string { let mut progress = string::new(); for dialogue in dialogues { if dialogue.contains("pass over") { progress = "let's not pass over important details.".to_string(); } else if dialogue.contains("return to square one") { progress = "sometimes returning to square one ensures we are cautious and thorough.".to_string(); } for note in &preexplanatory_notes { progress += &format!(" remember, being cautious is key: {}", note); } } return progress; };