Hi Alex,
It is correct. You need nested vectors to see the effect.
Try the following.
(⊂[2]2 3⍴⍳6)∘.{⍺∘.{⍺+⍵⊣⎕←⍺,'I',⍵}⍵⊣⎕←⍺,'O',⍵}(⊂[2]10×2 3⍴⍳6)
Best,
Xiao-Yong
> On Jun 14, 2016, at 6:39 PM, Alex Weiner wrote:
>
> Hi Bug-APL,
>
> Surely this is not correct:
>
> 5∘.∘.+9
> 14
Hi Bug-APL,
Surely this is not correct:
5∘.∘.+9
14
I would expect a syntax error.
If this is valid, then I stand corrected
-Alex
Hi Xtian,
the pollution of the )SI stack is sort of unavoidable with macros.
One could hide the macro calls, but that would give the wrong
idea of the real state of the )SI stack. Normally the macro
arguments are
completely checked before the m
Hi,
thanks, fixed in *SVN 744*.
/// Jürgen
On 06/14/2016 05:37 AM, Jin, Xiaoyong wrote:
Hello,
I guess the c++ code is calling the wrong macro.
Before r740:
(⊂'abc'){⍺ ⍵}¨3⍴1
abc 1abc 1abc 1
(⊂'abc'){⍺ ⍵}¨4⍴1
abc 1abc 1abc 1abc 1
After r740:
(
Hi Xiao-Yong,
thanks, fixed in SVN 744.
/// Jürgen
On 06/14/2016 05:39 AM, Xiao-Yong Jin
wrote:
Hello,
I guess the c++ code is calling the wrong macro.
Before r740:
(⊂'abc'){⍺ ⍵}¨3⍴1
abc 1abc 1abc 1
Hello,
I guess the c++ code is calling the wrong macro.
Before r740:
(⊂'abc'){⍺ ⍵}¨3⍴1
abc 1abc 1abc 1
(⊂'abc'){⍺ ⍵}¨4⍴1
abc 1abc 1abc 1abc 1
After r740:
(⊂'abc'){⍺ ⍵}¨3⍴1
a 1 b 1 c 1
(⊂'abc'){⍺ ⍵}¨4⍴1
INDEX ERROR+
μ-Z__vA_LO_EACH_vB[2] μ-