Hi Kyle,
One approach is to use with-datastack. Here anything goes:
( scratchpad - auto ) { } [ 10 iota [ ] each ] with-datastack .
{ 0 1 2 3 4 5 6 7 8 9 }
However a better approach might be to use something like 'make' where
you explicitly call , with each element to add it in:
( scratchpad - auto ) [ 10 iota [ , ] each ] { } make .
{ 0 1 2 3 4 5 6 7 8 9 }
If you tell us what you're trying to achieve (instead of just how
you're trying to achieve it), someone might be able to suggest a
better approach.
Slava
On Wed, Aug 25, 2010 at 6:32 PM, Kyle Cordes <[email protected]> wrote:
> Factor gurus,
> Could anyone kindly point me toward something similar to output>array, but
> which doesn't infer the array size (and thus can't fail because of trouble
> so inferring), but which rather just catches the results of the quotation
> (whatever size it happens to be) and makes that an array?
> I have looked at the docs quite a lot, and haven't been able to figure this
> out.
>
> --
> Kyle Cordes
> http://kylecordes.com
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk