On Tue, Aug 2, 2011 at 2:53 AM, mijj <[email protected]> wrote:
> [(2 _2) +&.>  (6&*)&.>  1 2; 1 2 3] worked .. but i wanted to combined
> it into one expression.
>
> - for me at the moment, getting an understanding of J is more important
> than a bare result. (And i didn't like the exra box op.)

To understand how the expression I wrote work, I would recommend
http://www.jsoftware.com/help/dictionary/samp14.htm

> another prob  i'm having, which ought to be simple is:
> creating a concatenated list from boxed lists:
>
> i.e.
> Jmagic 1 2;3 4 5
>    NB. -> 1 2 3 4 5

For this, I recommend
http://www.jsoftware.com/help/dictionary/d330.htm

> but i feel i ought to be able to do this as some sort of variant of
> f&:> 1 2; 1 2 3
> where [f] involves some [,] activity.

That will not work -- the individual boxes already contain lists.

You could use (,]&:> 1 2;1 2 3) -. 0

But that approach requires that you know your list does not contain
any zeros.   And ;1 2;1 2 3 is so much simpler.

Anyways, perhaps you could start with
http://www.jsoftware.com/help/dictionary/intro.htm and then follow the
>> links in the top right corner for a while.  That should give you an
overview, and help get you started on the general issues of finding
the parts of the language you need.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to