Hi Linda, We can rotate inside each line by a different amount :
(>:i.3)|. "0 1 i.3 4 1 2 3 0 6 7 4 5 11 8 9 10 Mixing rank and table gives the same result as Henry's expression : (>:i.3)|."0 1/ i.3 4 1 2 3 0 5 6 7 4 9 10 11 8 2 3 0 1 6 7 4 5 10 11 8 9 3 0 1 2 7 4 5 6 11 8 9 10 Shape of rotation amounts introduces interesting variations : (>:i.3 1)|."1 i.3 4 1 2 3 0 6 7 4 5 11 8 9 10 Jimmy On Mon, Feb 25, 2019 at 9:26 PM Linda Alvord <lindaalvor...@outlook.com> wrote: > > Jimmy, Can you extend this to all possibilities? > > Linda > > > > Sent from my Verizon, Samsung Galaxy smartphone > -------- Original message -------- > From: Jimmy Gauvin <jimmy.gau...@gmail.com> > Date: 2/25/19 5:03 AM (GMT-05:00) > To: programm...@jsoftware.com > Subject: Re: [Jprogramming] Try again > > Hi, > > 1|. "1 i.3 4 > 1 2 3 0 > 5 6 7 4 > 9 10 11 8 > > > > > On Mon, Feb 25, 2019 at 4:06 AM Linda Alvord <lindaalvor...@outlook.com> > wrote: > > > I managed to do this, but maybe there is an easier way: > > > > |:"2(i.4)|."0 2 |:i.3 4 > > 0 1 2 3 > > 4 5 6 7 > > 8 9 10 11 > > > > 1 2 3 0 > > 5 6 7 4 > > 9 10 11 8 > > > > 2 3 0 1 > > 6 7 4 5 > > 10 11 8 9 > > > > 3 0 1 2 > > 7 4 5 6 > > 11 8 9 10 > > > > Linda > > > > ---Original Message----- > > From: Programming <programming-boun...@forums.jsoftware.com> On Behalf Of > > lindaalvord > > Sent: Monday, February 25, 2019 1:53 AM > > To: programm...@jsoftware.com > > Subject: [Jprogramming] Try again > > > > I expected this to rotate all columns and got aii rows.]b=:i.3 4 > > 0 1 2 3 > > 4 5 6 7 > > 8 9 10 11 > > (1|.i.3) |."0 2 b > > 4 5 6 7 > > 8 9 10 11 > > 0 1 2 3 > > > > 8 9 10 11 > > 0 1 2 3 > > 4 5 6 7 > > > > 0 1 2 3 > > 4 5 6 7 > > 8 9 10 11How can I do that?LindaSent from my Verizon, Samsung Galaxy > > smartphone > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm