Perhaps I'm misrepresenting my problem after being biased by reading that. ;-)
Are they not very useful? I was looking for a way to filter very large files and found that link after running out of memory. With each-line, would that work? I noticed that 'quotation' is mistyped in the word description: "Word description Calls the quotatin with successive lines of text, until the current input-stream is exhausted." On Thu, Jan 15, 2009 at 10:36 AM, Slava Pestov <[email protected]> wrote: > 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 > ------------------------------------------------------------------------------ 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
