You can use literals vocabulary for that:

${ "three" 1 2 + }

We are thinking about whether all array literals should support that natively 
but that's not a change that will happen soon. 

http://docs.factorcode.org/content/article-literals.html




> On Oct 21, 2016, at 11:57 AM, Mike Maul <mike.m...@gmail.com> wrote:
> 
> Since items inside the array syntax are implicitly quoted, is their any 
> convent way of building an array. I mean there is 1array,2array,3array.. 
> which is a little ugly plus at some point you run out of Narrays words.
> 
> This is what I want:
> {
>   { "three" 1 2 + }
>   { "four" 2 2 + }
> }
> 
> This is what I have to do:
> 
> "three" 1 2 + 2array
> "four" 2 2 + 2array
> 2array
> 
> Was wondering if there is a nicer way of doing this..
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most 
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to