9 ms·
First examples of generators that I've seen that made them look useful. I'd never thought of using a generator as a filter, or for turning nested for-loops int
by krupan 15y ago
First examples of generators that I've seen that made them look useful. I'd never thought of using a generator as a filter, or for turning nested for-loops into one for-loop. I have some code I can go clean up now.
- ff0066mote 15y agoHere's a pile more to blow your mind with: http://www.dabeaz.com/coroutines/ http://www.dabeaz.com/coroutines/ [2009]