Fold changed in 9.02, reversing the meaning of u and v.  You have 9.01 and are expecting the old interpretation.  NuVoc is for 9.02 (it has a note to that effect IIRC).

Henry Rich

On 7/1/2020 7:29 PM, Piet de Jong wrote:
Started looking at fold — seems a very useful new verb.
However couldn’t get it to work

Engine: j901/j64avx2/darwin
Release-e: commercial/2020-01-29T12:41:32
Library: 9.01.21
Qt IDE: 1.8.6/5.12.7(5.12.7)
Platform: Darwin 64
Installer: J901 install
InstallPath: /applications/j901

Here is the what happens when I run the example from the vocabulary

    u
3 : 0
z=. -y
z [smoutput ' u' ; y ; '-->' ; z
)
v
4 : 0
z=. y + 0.01
z [smoutput x ; 'v' ; y ; '-->' ; z
)
y
100 0.1 1.1 2.1 3.1
u F:.v y
|domain error
| u F:.v y

Any help much appreciated.


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


--
This email has been checked for viruses by AVG.
https://www.avg.com

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to