bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Squad


From: Juergen Sauermann
Subject: Re: [Bug-apl] Squad
Date: Tue, 1 Nov 2016 12:22:41 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Hi Xtian,

the IBM APL2 language reference (which is the primary source of information for
GNU APL, the other being the ISO standard) says (page 160)):

The length of the left argument must be equal to the rank of the right argument.
⍴,L ←→ ⍴⍴R

/// Jürgen


On 11/01/2016 12:34 AM, Christian Robert wrote:
      )sic


      MAT
11 12 13 14
21 22 23 24
31 32 33 34

      2 1 ⌷ MAT
21
      2 (1 2) ⌷ MAT
21 22

      MAT[3;]
31 32 33 34
      3 ⌷ MAT
RANK ERROR
      3⌷MAT
      ^ ^

      ⍝ I was expecting the whple third line as result

Xtian.




reply via email to

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