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

As an idiom I quite like this form. I often do similar for double iterations:

   for (int x = 0; x < width; x++)
   for (int y = 0; y < height; y++) {
      do_something(x, y);
   }




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

Search: