Thanks Mike. I've upgraded to j902 and the problem is fixed. Just starting to learn J, so my mind was already being expanded. Glad it's fixed and not my understanding... ;)
On Tue, 14 Sept 2021 at 16:05, 'Mike Day' via Programming < programm...@jsoftware.com> wrote: > This rings a bell ... I think this might have been a problem with an early > beta, forget which version. Later correspondence shows you’re in release > beta 901-a, so likely to have been buggy, perhaps. > > Cheers, > > Mike > > Sent from my iPad > > > On 14 Sep 2021, at 14:59, Jon Quant <quanty....@gmail.com> wrote: > > > > Dear all, > > > > I have tried the following code and get unexpected results and wanted > your > > seasoned advice. > > > > kk=.i.5 > > kk > > 0 1 2 3 4 > > kk=.>:kk > > kk > > 1 2 3 4 5 > > i.5 > > 1 2 3 4 5 > > kk=.>:kk > > i.5 > > 2 3 4 5 6 > > > > So this modifies the behaviour of the 'i.' verb! Is there a (functional > > programming) grammar rule that says we must not modify a variable/noun > > which is also in the expression? > > > > Thanks > > Jon > > ---------------------------------------------------------------------- > > 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