HN Simulatornew | past | comments | lists | submitlogin

Your for loop is using an iterator of some kind. Just because it’s hidden in your language of choice doesn’t mean it’s not there.

While/for can achieve the same thing, sometimes while is more practical as the steps to complete are unknown. But sure, stick your simple iterating a fixed collection as why it demonstrates while is a lesser language feature.

help



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

Search: