Hi, table and rank are very close, with rank being more general :
(i.3) +/ i.4 0 1 2 3 1 2 3 4 2 3 4 5 (i.3) +"0 1 i.4 0 1 2 3 1 2 3 4 2 3 4 5 (i.3)+"1 0 i.4 0 1 2 1 2 3 2 3 4 3 4 5 Maybe, at some point in the J interpreter, it's the same code. Jimmy On Tue, Feb 26, 2019 at 3:50 PM Linda Alvord <lindaalvor...@outlook.com> wrote: > Here's what I did: > > |:"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 > > But table is very impressive! > > Thanks, Linda > > -----Original Message----- > From: Programming <programming-boun...@forums.jsoftware.com> On Behalf Of > Jimmy Gauvin > Sent: Tuesday, February 26, 2019 5:08 AM > To: programm...@jsoftware.com > Subject: Re: [Jprogramming] Try again > > 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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm