What are some useful or interesting infinite generators? [closed]
-
07-11-2019 - |
Question
What are some clever uses for infinite generators? I've seen lots of seemingly trivial examples like "list all even numbers", but I assume there must be others that have more applicability to real-world scenarios. Concrete examples (in any language that support generators) appreciated!
I'll give a trivial sample as an answer.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow