I always preferred this to the vocabulary definition of @: f=: 13 :'*/ x + y' x f y 2016 f [: */ + It seems to me that J does too.
Linda -----Original Message----- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord Sent: Thursday, January 30, 2014 2:14 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] setting rank to a conjunction t2=: 13 :'+/|:y' t2 [: +/ |: t2 3 3$i.9 3 12 21 Linda -----Original Message----- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Raul Miller Sent: Wednesday, January 29, 2014 8:46 PM To: Programming forum Subject: Re: [Jprogramming] setting rank to a conjunction Seconded - try ] t (+/) Thanks, -- Raul On Wed, Jan 29, 2014 at 8:21 PM, bill lam <bbill....@gmail.com> wrote: > You forgot to bracket +/ > On Jan 30, 2014 9:09 AM, "Pascal Jasmin" <godspiral2...@yahoo.ca> wrote: > >> Is there a way to set the rank of the resulting verb of a >> conjunction? A bit surprisingly, this workaround does not work: >> >> t=: 2 : '(u@:v)"1' >> >> >> ] t+/ 3 3 $ i.9 >> 9 12 15 >> >> result desired: >> ]@:+/"1 ] 3 3 $ i.9 >> 3 12 21 >> >> Ideally, it should be possible to set rank like: >> >> t =: 2 : 0 ("1) >> ... >> ) >> >> I guess this is another reason to support the (a c) and (c a) trains, >> where >> >> (A1 A2 c A3) -: u A1 A2 c v A3 >> >> but is there any workaround for setting the rank of a conjunction? >> --------------------------------------------------------------------- >> - For information about J forums see >> http://www.jsoftware.com/forums.htm >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm