Right - it's not a bug in J -- it's a bug in the sentence where its result conflicts with the advent of code day 5 spec.
I only just now realized that Henry must have thought I was talking about a J engine bug - but there's not one of those here. Thanks, -- Raul On Wednesday, December 6, 2017, Ric Sherlock <[email protected]> wrote: > I don't think there is a "bug" in J. It is just that the sentence solution > doesn't give the correct answer to the problem as specified, because J > interprets index _1 as wrapping back around round rather than as an error. > The problem specification is that if the index is less than 0 then the > solution is complete. > > On Thu, Dec 7, 2017 at 3:27 PM, Henry Rich <[email protected]> wrote: > > > Looks right to me. > > > > Henry Rich > > > > On 12/6/2017 9:04 PM, Raul Miller wrote: > > > >> #(([+{);>:@{`[`]})&>/ ::]^:a:@(0&;) 0 _2 0 0 > >> > >> 10 > >> > >> > >> Thanks, > >> > >> > >> > > > > --- > > This email has been checked for viruses by AVG. > > http://www.avg.com > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
