Hacker News new | past | comments | ask | show | jobs | submit login

I'll buy that -- it's sort of mentioned in the post as an object-based wrapper around the closure version, except I listed the functions as HasNext() and Next(). More boilerplate for the iterator implementer, but I agree, it reads better for the caller.



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

Search: