June Kim wrote:
> From Learning J on 13.2.4,
> [quote]
> 2 : '..  u.  v.  y. ..'      explicit-monad-generating conjunction
> 2 : '..  u.  v.  x.  y. ..'  explicit-dyad-generating conjunction
> [/quote]

Unfortunately, using x in a 2 : conjunction doesn't do
anything more to affect the valence of its result 
than using x affects the valence of a  3 : verb.  Of
course, you need to reference x to get take advantage
of the second argument, but you also need to use the
right form to ensure that you're creating a definition
for the dyadic valence.

13.2.3 seems to make it clear that a ':' in the definition
is required.

> My closest trial was, for example:
>    foobar=: 2 : 0
> :
> (x%u) v y
> )
> Or,
>    foobar=:2 : (':';'(x%u) v y')

Both of your examples here seem valid.

-- 
Raul

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

Reply via email to