Thanks, but now I want to do the reverse.
Stack Top         Some Word    New Stack Top
{ 2 4 8 16 32 }   ?            32
                               16
                                8
                                4
                                2

-----Original Message-----
From: Chris Double [mailto:chris.dou...@double.co.nz] 
Sent: Tuesday, November 16, 2010 6:01 PM
To: factor-talk@lists.sourceforge.net
Subject: Re: [Factor-talk] How do I construct a sequence from values on
thestack

On Wed, Nov 17, 2010 at 2:56 PM, Jeff C. Britton <j...@iteris.com> wrote:
> What "word" do I need?

There are worlds like 1array, 2array, 3array and 4array to produce an
array from that many items on the stack. There is also 'narray' which
is a generalisation of these for any number. eg:

2 4 8 16 32 4 narray => { 2 4 8 16 }

Chris.
-- 
http://www.bluishcoder.co.nz

------------------------------------------------------------------------
------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to