Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On the other hand having a filter construct is way nicer than having to manage the two arrays on your own.

Or worse yet, when someone is trying to remove items from a list that is self resizing, it is very easy to make bugs (by not adjusting the counter in the for loop when one is removed).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: