In addition to the other answers, rotate=: |."_1 is also interesting for the insight it offers on negative rank, esp. _1 rank.
----- Original Message ----- From: Romilly Cocking <[email protected]> Date: Sunday, September 5, 2010 9:35 Subject: [Jprogramming] Equivalent of APL rotate To: [email protected] > I'm looking for a J expression which will rotate each row of a > matrix by a > different amount (specified in a vector). > > In other words, I'd like > > 1 0 2 0 rotate >'cat';'dog';'hen';'cow' > to give > > atc > dog > nhe > cow ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
