What does IBM APL 2 do?

On Wed, Sep 22, 2021 at 10:55 AM Louis Chretien via Bugs and suggestions
for GNU APL <bug-apl@gnu.org> wrote:

> And what is the correct answer?
>
> I tried it with APL/X 5.1, and i get the same “RANK ERROR” as in GNU APL.
>
> If i understand disclose correctly, the right argument are nested
> elements, but of a shape that allows for them to be laminated into a matrix
> as a result. Having a scalar, a vector and a matrix is bound to create
> difficulty.
>
> On Sep 22, 2021, at 09:16, Elias Mårtenson <loke...@gmail.com> wrote:
>
> The following expression should work, if I'm reading the ISO spec
> correctly:
>
> ⊃ 3 (1 2) (2 2 ⍴ 0 1 2 3)
>
> It does work on Dyalog, and gives the expected result.
>
> Regards,
> Elias
>
>
>
> ---
> Louis Chrétien
> lchret...@mac.com
>
>
>
>
>

Reply via email to