Re: Support for 'where' primitive '⍸' ?

2020-11-27 Thread Russtopia
Aha, I suspected as much, but being so new to the language I thought I would ask here to be sure. Thank you so much for your work on GNU APL. I still don't know exactly how or where I'll use APL, but I am enjoying how it directs one to think about problem-solving. -Russ On Fri, 27 Nov 2020 at 05

Re: Support for 'where' primitive '⍸' ?

2020-11-27 Thread Dr . Jürgen Sauermann
Hi Jay, thanks a lot for the pointers. Best Regards, Jürgen On 11/27/20 2:48 PM, Jay Foad wrote: Dyalog's documentation for Where (monadic ⍸) is here: http://help.dyalog.com/18.0/#Language/Primitive%20Functions/Where.htm It was implemented long after Mastering Dyalog APL was written. Re: mon

Re: Support for 'where' primitive '⍸' ?

2020-11-27 Thread Jay Foad
Dyalog's documentation for Where (monadic ⍸) is here: http://help.dyalog.com/18.0/#Language/Primitive%20Functions/Where.htm It was implemented long after Mastering Dyalog APL was written. Re: monadic ⍳ with vector arguments, I believe Dyalog got this from the original NARS: see https://aplwiki.com

Re: Support for 'where' primitive '⍸' ?

2020-11-27 Thread Dr . Jürgen Sauermann
Hi Russ, welcome to APL. And welcome to bug-apl@gnu.org. The latter is a moderated list, so please subscribe to it because otherwise each of your emails will require (manual) approval by myself. Back to your question, ⍸ is definitely not a stan

Re: APL2 Compatibility

2020-11-27 Thread Jay Foad
No problem! Your (⊂ 1 2) (/¨)¨(,¨)'ab' can of course be golfed: (⊂1 2)/¨¨'ab' a aab bb Or, in Dyalog: 1 2∘(/¨)¨'ab' a aab bb Jay. On Fri, 27 Nov 2020 at 11:47, Hans-Peter Sorge wrote: > > Hi, > > In my mind I mostly think in "elements" - not rank or shape. > > Tha

Re: APL2 Compatibility

2020-11-27 Thread Hans-Peter Sorge
Hi, In my mind I mostly think in "elements" - not rank or shape. That is  "L-element OP R-element" . Where elements have an empty rank (scalar, ⊂..). And APL takes care of ranks, shapes and depth. ⍝ as you mentioned (and I had to remember):  'a' 'b' ≡ 'ab' ⍝ that is a vector of single chars i