Re: Index-of function with structured left-argument

2020-04-15 Thread Hans-Peter Sorge
Hi, Your ⎕IO is 0 ⎕IO←1   Display (2 2 ⍴ 104 105 106 107) ⍳ (3 4 ⍴ 100+⍳100) ┏→━━┓ ↓┏⊖┓   ┏⊖┓   ┏⊖┓   ┏→━━┓┃ ┃┃0┃   ┃0┃   ┃0┃   ┃1 1┃┃ ┃┗━┛   ┗━┛   ┗━┛   ┗━━━┛┃ ┃┏→━━┓ ┏→━━┓ ┏→━━┓ ┏⊖┓  ┃ ┃┃1 2┃ ┃2 1┃ ┃2 2┃ ┃0┃  ┃ ┃┗━━━┛ ┗━━━┛ ┗━━━┛ ┗━┛  ┃ ┃┏⊖┓   ┏⊖┓   ┏⊖┓   ┏⊖┓  ┃ ┃┃0┃  

Re: Index-of function with structured left-argument

2020-04-14 Thread Dr . Jürgen Sauermann
Hi again, just saw that this is documented in "info apl" section "3.17.2 Generalized dyadic ⍳". Apparently your ⎕IO is 0 which makes it a bit mysterious. Otherwise:   A←2 2 ⍴ 104 105 106 107   B←3 4 ⍴ 100

Re: Index-of function with structured left-argument

2020-04-14 Thread Dr . Jürgen Sauermann
Hi Elias, my best guess is that this is a missing RANK ERROR somewhere. I will look into it. Best Regards, Jürgen On 4/14/20 10:15 AM, Elias Mårtenson wrote: The ISO spec doesn't address what the

Re: Index-of function with structured left-argument

2020-04-14 Thread Jay Foad
Just from staring at the result, it looks like the result of ⍺⍳⍵ has the same shape as ⍵, and for each item of ⍵ it tells you either the coordinates where it was found in ⍺, or ⍬ if it was not found. (Dunno what it does if ⍺ is a scalar, where ⍬ would be a valid coordinate.) N.B. in Dyalog APL dya