From: "Henry Rich" <[EMAIL PROTECTED]>
 
> 5!:0 and `: 6 can produce conjunctions too.  I can't
> think of a way to produce a non-trivial case without
> using 2 :, though.
> 
>    y =. &
>    ay =. 5!:1 <'y'
>    ay `: 6
> &
>    ay 5!:0
> &
>    5 (ay `: 6) +
> 5&+
>    5 (ay `: 6) + 10
> 15

An indirect reference to a part of speech as above can be obtained more 
directly with adverb Evoke ("modifying" a noun): 

   y =: & 
   y
&
   'y'~
&
   ]ay=:'y'~
]y
   5 ay +
5&+
   5 ay + 10
15


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

Reply via email to