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
