In f, the noun you are bonding to the verb is the number 4.

In g and h, the noun you are bonding to the verb is the parameter y.

In i you are implementing a syntax error.

The trees for g, h and i represent explicit definitions.

Thanks,

-- 
Raul



On Sat, Mar 8, 2014 at 11:33 PM, Linda Alvord <[email protected]>wrote:

> 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
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to