See thread in forum "spiral order" and "spiral array" One from 2005 and the other 2006
2010/5/28 Mark Allen <[email protected]>: > 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 > -- Björn Helgason, Verkfræðingur Fornustekkum II 781 Hornafirði, t-póst: [email protected] gsm: +3546985532 sími: +3544781286 http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) ♖♘♗♕♔♙ `. )----' (")_(") ☃☠ ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
