Hi Ben,

thanks, fixed in SVN 1291.

BTW: if EACH is called with a defined function then it is
is computed with an internal APL function (aka. a Macro).

You can display the APL code of a Macro in APL like this:

      ⎕CR 'μ-Z__sA_LO_EACH_vB'
Z←A (LO Z__sA_LO_EACH_vB) B;rho_Z;N;N_max  
rho_Z←⍴B ◊ N←⎕IO ◊ N_max←N+⍴B←,B ◊ Z←N_max⍴0
(N⊃Z)←⊂(⊃A) LO N⊃B ◊ 0 → N_max>N←N+1       
Z←rho_Z⍴Z                                  

Best Regards,
Jürgen


On 6/1/20 2:26 AM, Ben Harris wrote:
On Sun, 31 May 2020, Dr. Jürgen Sauermann wrote:

thanks, fixed in SVN 1290.

Thank you!  That seems to have left some more misbehaviour around "each", this time with scalars containing arrays passed to defined functions:

      (⊂0 0)≡¨((0 0) (0 1))
1 0
      ∇z ← x eq y
[1] z ← x ≡ y
[2] ∇
      (⊂0 0)eq¨((0 0) (0 1))
0 0

Here I'd expect eq and ≡ to behave identically, but they don't.  There are no empty arrays here, so no fill functions or identity functions are involved.


Reply via email to