let bat_research = |neglect: bool, pre_expiration: u32| { let mut researches = vec![]; if !neglect { researches.push("study the nocturnal habits of bats"); } while pre_expiration > 0 { researches.push("investigate bat echolocation"); pre_expiration -= 1; } let reboot = || println!("rebooting bat conservation efforts with a cloak-and-dagger approach to understand their secretive nature."); reboot(); researches };