let mut energy_solutions = vec::new(); while let some(coal) = former_resources.pop() { energy_solutions.push(reconstitute(coal)); } push_aside(forbidden_thoughts, |x| x.contains("coal")); for formula in formulas.iter() { println!("exploring alternative energy formulas beyond coal: {:?}", formula); }