The problem is this:

   (1) 1&|@^ 0  NB. right
0
   (1) 01&|@^ 0  NB. wrong
1

1 m&|@^ 0 fails when m is integer 1 (works for binary 1).  For a workaround you would need to test for this case.  The problem is very old.

Fixed for next beta.

Henry Rich




On 8/17/2022 8:23 PM, Raul Miller wrote:
    fpp=: {{1=(x:x)(y&|)@^y-1}}"0
    1 fpp 1
0
    1 fpp 1 2
1 1
    JVERSION
Engine: j904/j64avx2/windows
Beta-e: commercial/2022-07-16T19:21:14
Library: 9.04.03
Qt IDE: 2.0.3/6.2.4(6.2.4)
Platform: Win 64
Installer: J904 install
InstallPath: c:/other/j904
Contact: www.jsoftware.com



--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to