2009/10/31 Joe Groff <[email protected]>: > On Oct 31, 2009, at 4:46 PM, Paul Moore wrote: > >> I'm playing with the idea of iterators and generators from Python. >> Basically, an iterator is an object that supports a single operation, >> next, which produces the iterator's next value. Iterators can be >> created from sequences in the obvious way by iterating through the >> items. > > There's a "cursors" vocabulary in extra/ that sounds like what you're > looking for.
Looks interesting. Certainly, it's very similar to what I was thinking of, but some parts confuse me (I can't see how the "iterate" word works, for example - the "iterator" argument on the top of the stack doesn't make sense). The requirement of cursor-done? doesn't sit well with my generator function use case, though (as I explained in my reply to Dan, it implies the need to cache a value). Thanks, Paul. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
