[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Stack Overflow Question
From: |
Chris Moller |
Subject: |
Re: Stack Overflow Question |
Date: |
Fri, 18 Jun 2021 12:25:44 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
There's a version GNU APL created by Jürgen Sauermann--based, I
think, on GNU APL 1.8--on which your test cases work fine:
x←1 2 3 4 5
u←6=x∘.+x
u
0 0 0 0 1
0 0 0 1 0
0 0 1 0 0
0 1 0 0 0
1 0 0 0 0
⍸u
1 5 2 4 3 3 4 2 5 1
{⍸6=⍵∘.+⍵}x
1 5 2 4 3 3 4 2 5 1
{⍸6=⍵∘.+⍵} 1 2 3 4 5
1 5 2 4 3 3 4 2 5 1
{⍸6=⍵∘.+⍵} ⍳5
1 5 2 4 3 3 4 2 5 1
app←{⍸6=⍵∘.+⍵}
app 1 2 3 4 5
1 5 2 4 3 3 4 2 5 1
It might be worth your time to try it, see
https://www.gnu.org/software/apl/
Jürgen's version can be gotten at either:
svn checkout http://svn.savannah.gnu.org/svn/apl/trunk
or
git clone https://git.savannah.gnu.org/git/apl.git
Good luck,
Chris Moller
On 6/18/21 8:50 AM, Adám Brudzewsky
wrote:
Hi, can anyone answer this?
OpenPGP_0xDA6C01938888083E.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature