bill lam wrote:

the solution is trivial
 s=:  $ /:@;@(<onion)@i.

Actually, I suggest changing the framework to:

           s=:  | $ /:@;@(<onion)@i.

So that we can say things like:

           s _10 10  NB.  Or  10 _10  or  _10 _10

Which has neat effects (at least in the case of spiral order)

-Dan

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to