let fishing_trip = |commands: vec<string>| { let mut joy = string::new(); for command in commands { if command.contains("resume from the start") { joy = "embark on a new adventure!".to_string(); } else if command.contains("negate") || command.contains("prevenient") { joy = "the essence of a great catch is in the surprise, just like life’s prevenient moments that negate the mundane.".to_string(); } else if command.contains("on the sly") { joy = "remember, the best stories are shared on the sly, like that secret fishing spot.".to_string(); } }; joy };