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

It is the job of the language to ensure that language primitives are reusable and composable.

I think this would apply to whatever mechanism is designed to describe a loop's iteration space.



Most languages use some sort of interface whereby if you implement certain methods for a type then that type can be iterated over using a for loop.




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

Search: