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

A lot of people forget (or never knew) that the increment and decrement operators return a value as well as affecting the target variable, and that you can put what-ever you like in the iteration end control portion of a for statement as long as it returns truey/falsey.


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

Search: