On my android, I get what you would expect. kk=.i.5 kk 0 1 2 3 4 ] kk=.>:kk 1 2 3 4 5 i.5 0 1 2 3 4
JVERSION Engine: j902/j64/android Release-a: commercial/2020-12-10T11:16:47 Library: 9.02.08 J Android: 1.4.12/11/30 Platform: Android 64 (arm64-v8a) Installer: unknown InstallPath: /storage/emulated/0/Android/data/com.jsoftware.j.android/files Contact: www.jsoftware.com On Tue, Sep 14, 2021, 10:31 Michal Wallace <michal.wall...@gmail.com> wrote: > Are you using the beta version (j903)? please type JVERSION inside J and > show us the output. > > If this is actually happening, then it's a bug. > Could be something to do with this: > > > https://code.jsoftware.com/wiki/Vocabulary/SpecialCombinations#Pre-Parsed_Parenthesized_Primitives_.28PPPP.29 > > > On Tue, Sep 14, 2021 at 9:59 AM 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