You can cook this up using continuations (and indeed, take a look at extra/coroutines), but in general it might be simpler to express your problem in another way. Can you give us a specific example where you want to use generators, and then we can give more specific advice?
Slava On Thu, Jan 15, 2009 at 12:34 PM, Adam <[email protected]> wrote: > Is there a feature in Factor that acts like Generators in Python? > > I.E. adding an iteration protocol where a result is computed, > returned, and then yeilds to the caller? > > http://www.dabeaz.com/generators-uk/ > http://www.dabeaz.com/generators-uk/GeneratorsUK.pdf > > Thanks, > > -Adam > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
