tag:blogger.com,1999:blog-7396374313002634273.post-43297010786050190342007-10-18T23:58:00.000+08:002007-10-19T00:20:45.210+08:00When conditionally deleting from a list, iterate backwardMy ex colleague once told me, if you need to delete some element of a list or array based on some condition, iterate though the list backward. That way, the index will remain the same while traversing the list. Never been in that situation, I thought.<br /><br />I was faced with this problem recently and thinking about how to solve it, it seems not so straight forward. Then I remembered that advice. Problem solved, yay.Hendy Tanatahttp://www.blogger.com/profile/12970275896974540871noreply@blogger.com