[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ¨ (each) on defined function on array of empty arrays

From: Dr . Jürgen Sauermann
Subject: Re: ¨ (each) on defined function on array of empty arrays
Date: Mon, 1 Jun 2020 14:10:13 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

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       

Best Regards,

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

[Prev in Thread] Current Thread [Next in Thread]