Or $>a0;a1;a2;a3
4 3 ,/ on a list has no effect, unless the list has just one item. Henry Rich On 1/5/2016 10:44 PM, Devon McCormick wrote:
'a0 a1 a2 a3'=. i.4 3 $>,/a0;a1;a2;a3 4 3 On Tue, Jan 5, 2016 at 7:00 PM, bill lam <[email protected]> wrote:for looping, try an accumulator, eg a=. i.0 0 a=. a, a0 a=. a, a1 .... On Jan 6, 2016 2:21 AM, "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
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
