Daniel Ehrenberg wrote: > On Thu, Mar 27, 2008 at 10:22 PM, Eduardo Cavazos > <[EMAIL PROTECTED]> wrote: > >> Here's a sketch: >> >> http://dharmatech.onigirihouse.com/seq-iter.factor >> >> The 'newfx' vocab is at: >> >> http://dharmatech.onigirihouse.com/newfx.factor >> >> Yes, it's heretical. >> > > Regardless of whether it's heretical, I don't understand why you > decided to design it this way. I'm wondering what the advantages of a > cursor-based approach over a higher order function are, and of > including the quotation in the iterator. Or are you imagining this > iterator thing just as a cleaner implementation of find, rather than a > way to make sequences more generic? Hi Dan,
I think Ed wants to make the implementation of combinators cleaner: if the sequence and index becomes one element on the stack, implementing each, all?, find, etc becomes easier. You can also use these combinators with linked lists, database queries, and so on. Slava ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
