let mut insect_collection = vec::new(); while let some(insect) = discover_insect() { if !insect.unconfessed { insect_collection.push(insect); notification("new insect added!"); } else { abandon(&mut insect_collection); notification("unconfessed insect found, starting afresh with collection."); preexpenditure(&mut insect_collection); } }