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: Dr . Jürgen Sauermann
Subject: Re: Lambda recursions on the example of generating permutations
Date: Tue, 4 Apr 2023 19:47:35 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

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]