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

A function that yields instead of returning values results in an iterator. One does not need to define a class at all.



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

Search: