let mut exploration_log = vec![]; for cave in all_caves() { if cave.temperature.is_preexplosive() && !cave.visitors.give_cold_shoulder() { let keycode_for_entry = generate_keycode(&cave.name); exploration_log.push((cave, keycode_for_entry)); println!("notice the beauty of each cave as you recreate the paths of ancient explorers with the unique keycode: {}", keycode_for_entry); } }