Thanks for that. Once I've got this lot well under my belt, I *will* be generalizing to 3-D, of course. I think a Conway's Life-3D, or 3-d tic-tac-toe will be good examples for J.
Of course, by the time we get to 3-D tic-tac-toe on a torus, then cheap tricks like "padding" to read will have to be discarded, and something more serious adopted. (I mean, you're not going to pad a 3-d cube with 6 copies of itself, are you? LOL) I'll leave this for a lazy day.... I haven't looked at your option that separates data from structure (saving that) I hope it may provide some hints. ;) On 16 November 2012 15:49, Raul Miller <rauldmil...@gmail.com> wrote: > On Thu, Nov 15, 2012 at 7:06 PM, Alex Giannakopoulos < > aeg...@blueyonder.co.uk> > > Nice "torus-pad" ([:|:{:,]{.)^:2 > > Or, more generally: > > (0 |:{:,],{.)^:(#@$) > > Also, here's a general "fill pad": > > ((_1 ["0 $) |. ({.~ 2 +$)) > > That said: generality can be good for insight, and in utility > contexts, but can also sometimes be bad in application contexts. > > FYI, > > -- > Raul > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm