bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Correct use of ⍤


From: Kacper Gutowski
Subject: Re: [Bug-apl] Correct use of ⍤
Date: Sun, 4 May 2014 16:59:59 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

On 2014-05-04 22:21:48, Elias Mårtenson wrote:
> I was reading the following thread on comp.lang.apl: 
> https://groups.google.com/
> d/msg/comp.lang.apl/ZmdHbyqSM4M/522hE9rDRTkJ
> 
> In it, it is suggested that the following statement will work:
> 
>       (3 3⍴⍳9)×⍤1 ⍳3
> 
> However, GNU APL gives RANK ERROR here. Is that correct?

It was discussed here earlier.  GNU APL doesn't have syntax for
non-functional right operand, instead ⍤ is monadic (f⍤) and right
argument of derived function is treated in peculiar way that in
some cases will make it look as elsewhere but it others will give
confusing rank error.

In GNU APL you have to write:

  (3 3⍴⍳9)×⍤1 (⍳3)


-k



reply via email to

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