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

Reply via email to