because I'm trying to change the language in which the algorithm is written. in c++ I don't have the use of the foreach loop, at least, the for_each loop I do have doesn't allow me to change the list.
so I can't figure out how to deal with the stuff I add or remove, so any help would be nice