Re: ending/stopping a script

2021-06-15 Thread enztec
Hi I actually am going back to loading scripts into apl ws rather then running them as scripts due to the ⍎')copy file' timing problem with copying huge data in the script failing and using fns rather then direct execution so my need for clean termination in script is kinda mute but that said

Re: better apl array coding

2021-06-15 Thread enztec
Hi thanks for this code - first time actually using ¨ and ⌷ in my comparison test on an old hp dual core linux machine - with only mplayer running with ⍴a and ⍴b 29882 chars according to ⎕ts my loop code takes ~39 seconds to put results into rs 2021 6 15 19 46 11 277 2021 6 15 19 46 50 354

Re: ending/stopping a script

2021-06-15 Thread Dr . Jürgen Sauermann
Hi, see below. Best Regards, Jürgen On 6/14/21 10:05 PM, enz...@gmx.com wrote: Hi every scripting language has a simple way to end script execution using code that 'reflects' the nature of the language's syntax - thus bash - exit

Re: better apl array coding

2021-06-15 Thread Dr . Jürgen Sauermann
Hi, how about:   (a,¨b)⌷¨⊂ar 11 22 33 44 44 33 22 11 Best Regards, Jürgen On 6/15/21 2:45 AM, enz...@gmx.com wrote: hello i've been using this looping for array work but there has to be a better

Re: better apl array coding

2021-06-15 Thread Hans-Peter Sorge
Hi, if this is, what you want? ar←4 4⍴11 12 13 14 21 22 23 24 31 32 33 34 41 42 43 44 ⍝ btw: ar← (10×⍳4)∘.+⍳4 a←1 2 3 4 4 3 2 1 b←1 2 3 4 4 3 2 1       ,[1.1]'lp' 'ar' ar 'a' a 'b' b (d,⌽d←1 1⍉ar) It is not quite clear, what your intend is. First: