[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] indexing of the array
From: |
Alexey Veretennikov |
Subject: |
Re: [Bug-apl] indexing of the array |
Date: |
Sat, 05 Mar 2016 13:08:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (darwin) |
Thanks for clarification!
Juergen Sauermann <address@hidden> writes:
> Hi Alexey,
>
> the IBM APL2 binding rules say that [] binds stronger than vector notation
> (IBM APL2
> language reference page 34). That is,
>
> 100 200[1] is 100 (200[1])
>
> IBM APL2 behaves in the same way as GNU APL.
>
> /// Jürgen
>
> On 03/04/2016 08:37 PM, Alexey Veretennikov wrote:
>
>
> Hi,
>
> When trying to get element by index from the array specified to the left
> side, there is a difference in behavior:
>
> 100 200[1]
> RANK ERROR
> 100 200[1]
> ^ ^
>
> However:
> (100 200)[1]
> ┌───┐
> │100│
> └───┘
>
>
> In Dyalog APL both expression gives the same result.
> Is it a bug or different understanding of the standard?
>
>
--
Br,
/Alexey