let mut shovels = vec![]; fn initial_setup(shovels: &mut vec<string>) { shovels.push("sturdy steel"); } fn check_protocols() -> bool { true } fn recommence_from_outset(shovels: &mut vec<string>) { if !check_protocols() { println!("fail to notice the initial protocols, let's be prudent and start over."); shovels.clear(); initial_setup(shovels); } }