JVERSION
Engine: j904/j64avx2/linux
Beta-i: commercial/2022-12-13T15:14:45
Library: 9.04.06
Qt IDE: 2.0.3/5.12.8(5.12.7)
Platform: Linux 64
Installer: J904 install
InstallPath: /home/user/j904
Contact: www.jsoftware.com
NB. problem #1: the length of result exceeds the length of input
NB. depending on verb applied, when input is empty list
1&+ S: 0 (0 ; 0 0) NB. ok
1 0
1 1
1&+ S: 0 (, < , 0) NB. ok
1
1&+ S: 0 (0 {. a:) NB. ok
# S: 0 (0 ; 0 0) NB. ok
1 2
# S: 0 (, < , 0) NB. ok
1
# S: 0 (0 {. a:) NB. output isn't an empty list
0
NB. the same is for L:
1&+ L: 0 (0 ; 0 0) NB. ok
+-+---+
|1|1 1|
+-+---+
1&+ L: 0 (, < , 0) NB. ok
+-+
|1|
+-+
1&+ L: 0 (0 {. a:) NB. ok
# L: 0 (0 ; 0 0) NB. ok
+-+-+
|1|2|
+-+-+
# L: 0 (, < , 0) NB. ok
+-+
|1|
+-+
# L: 0 (0 {. a:) NB. output isn't an empty list
0
NB. problem #2: the datatype of result boxed leaks out of box
datatype 1.2&+ L: 0 (0 ; 0 0) NB. ok
boxed
datatype 1.2&+ L: 0 (, < , 0) NB. ok
boxed
datatype 1.2&+ L: 0 (0 {. a:) NB. result should be 'boxed', too
floating
--
Regards,
Igor
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm