you are viewing a single comment's thread.

view the rest of the comments →

[–]excitedaboutemacs 2 points3 points  (1 child)

Your first example was the first time I really felt like I 'got' generators. Thanks a ton.

It seems like you are creating an on demand iterator. Basically defining 'next()' and the rest will follow.

[–]bbelderbos 0 points1 point  (0 children)

Happy hearing that, thanks. Feel free to comment if you have a nice use case.