bug-apl
[Top][All Lists]
Advanced

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

Re: Lambda recursions on the example of generating permutations


From: Robin Haberkorn
Subject: Re: Lambda recursions on the example of generating permutations
Date: Wed, 5 Apr 2023 02:24:28 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

Hello Jürgen,

thank you. I can confirm that the fix works.

Best regards,
Robin

04.04.23 20:47, Dr. Jürgen Sauermann пишет:
Hi Robin,

yes it is. Fixed in *SVN 1675*.

Windows files are rarely updated, for an up-to-date windows version:

install cygwin,
check out from SVN, then
./configure ; make ; sudo make install

like in GNU/Linux.

Best Regards,
Jürgen


On 4/4/23 14:20, Robin Haberkorn wrote:
Perm ← {(X/⍨⍺=+/¨X←(⊂2⍴⍨⍵)⊤¨⍳2*⍵) /¨ ⊂⍳⍵; X}

Works on v1.8-1 (the Debian package), but NOT v1.8 for Windows (apl-1.8-windows.zip). Also it does not work on the SVN trunk!

This version however works on the aforementioned versions:

Perm ← {(X/⍨⍺=+/¨X←(⊂2⍴⍨⍵)⊤¨⍳2*⍵) {⍺/⍵}¨ ⊂⍳⍵; X}

Which is clearly a bug.




reply via email to

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