robert-chiniquy/julia — comment on commit 5e44b1a82390568d326e012f803edaa91deeaa11
File:  line 0
By robert-chiniquy:

Yes, these are coroutines, you can't call them directly (instead of returning a value they call produce()). The top example here: http://julialang.org/manual/example-programs/ shows how you can call these functions. I used coroutines as Jeff suggested because of the staggering size of most combinations and partitions, and also because I'm not as familiar with the methods to write like an nth_combination() or nth_partition().