The parens are unnecessary:

   'a b c d e'=. i.5 3

   a,b,c,d,:e

0 1 2

3 4 5

6 7 8

9 10 11

12 13 14

On 5 January 2016 at 10:21, PackRat PackRat <[email protected]> wrote:

> I do a lot of manipulations with stock market data and such (i.e.,
> tabular data), and I often have to "rip apart" a table and then
> reassemble the rows again.  The ripping apart is easy, but I've always
> been challenged when putting it back together because the result never
> came out the way I wanted (or expected).  After much experimenting and
> mucking around, I came up with this (as an example):
>
>     z=. (((a0 ,: a1) , a2) , a3) , a4    NB. "glue" rows together
>
> However, there always seems to be a better way to do things in J.  Can
> anyone enlighten me with an improved explicit manner (NOT tacit) of
> doing this?  Thanks in advance!
>
>
> Harvey
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to