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 
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7Cef9d71ef691c4a690fab08d69aedf251%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636866744089895414&amp;sdata=lBaYFPD2VS%2Fdbi6Sz60fRoM8DlMgG5oTAfPq2FianN8%3D&amp;reserved=0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to