Why is the display of f different than g , h and I ?
NB. m&v y is defined as m v y
NB. u&n y is defined as y u n
f=: 13 :'4&*y'
g=: 13 :'4*&y'
h=: 13 :'y&*4'
i=: 13 :'y*&4'
f
4&*
g
3 : '4*&y'
h
3 : 'y&*4'
i
3 : 'y*&4'
5!:4 <'f'
-- 4
-- & -+- *
5!:4 <'g'
-- 3
-- : -+- ,:'4*&y'
5!:4 <'h'
-- 3
-- : -+- ,:'y&*4'
5!:4 <'i'
-- 3
-- : -+- ,:'y*&4'
Where does ,: come from in the trees for g , h and I ?
f 5
20
h 5
20
g 5
|syntax error: g
| 4*&y
i 5
|syntax error: i
| y*&4
Finally, only two work.
Linda
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm