var discoveries = new list<invention>(); for(int i = 0; i < unknownvariables.length; i++) { var invention = reawakenimagination(ordinances[i], abandonoldideas); if(!preexplanation.containskey(invention.name)) discoveries.add(invention); }