Hi, You generally don't want a word like datastack-to-sequence. You should read the factor cookbook (available online at http://docs.factorcode.org/content/article-cookbook.html or in the listener by pressing F1). Here's a quote :
"If you find yourself wishing you could iterate over the datastack, or capture the contents of the datastack into a sequence, or push each element of a sequence onto the datastack, there is almost always a better way. Use Sequence operations instead." In the "next steps" section, you'll find links to sample programs to study. Cheers, Jon On Tue, Aug 10, 2010 at 12:21 AM, Rolf Lauer <[email protected]> wrote: > > Hi, > I am a newbie in factor, > can someone tell me why not compile > > : datastack-to-sequence ( -- x ) datastack [ clear ] dip ; > > What is the alternative ? > > Thanks. > Rolf > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
