In revise, you are using a pair for your right argument. It looks to me like this might be unnecessary -- that you could use ys=. I.+./"1 D
But this does not exactly reproduce your algorithm. So if this change breaks your algorithm, could you find an example situation which illustrates this issue? Thanks, -- Raul On Fri, Nov 2, 2012 at 1:01 AM, Michal D. <michal.dobrog...@gmail.com> wrote: > Hi All, > > I've managed to write my first not-completely-trivial program in J. It > implements an arc consistency algorithm ( > http://en.wikipedia.org/wiki/Local_consistency#Arc_consistency). I would > appreciate any comments regarding style, what I'm doing wrong in J or how > to improve the code. I also have a couple of questions of my own: > > 1) how do I avoid @ especially once we remove explicit arguments? > 2) how do I avoid constant boxing/unboxing due to fill (see arcsX)? > 3) Is a boxed value always a pointer? One could imagine implementing > 'ragged' arrays without pointers. > 4) Is there a good way to have named variables (ie. avoid getx, gety)? > 5) Why is a hook the default and not composition? > > Code at: http://pastebin.com/k4XuKfFi > > Cheers! > > Mike > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm