Two articles of interest: http://www.jsoftware.com/jwiki/Doc/Articles/Play132
http://www.vector.org.uk/archive/v144/peelle144_53.htm Simon -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mark Allen Sent: 28 May 2010 11:36 To: Programming forum Subject: [Jprogramming] Simple J question: Creating a spiral array Hi, I'm trying to do something which I thought would be simple enough, but I'm having some difficulty: I want a verb that will create a spiral array of ascending integers, i.e. spiral 4 16 15 14 13 5 4 3 12 6 1 2 11 7 8 9 10 I thought this would be simple enough to do, yet so far, with my limited abilities, the solution has managed to evade me. The methods I were trying generally involved combinations of |. and |: with ,. over sub arrays of >:i.16, can anyone suggest a better way? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
