|
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 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |