t2=: 13 :'+/|:y'
t2
[: +/ |:
t2 3 3$i.9
3 12 21
Linda
-----Original Message-----
From: [email protected]
[mailto:[email protected]] 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 <[email protected]> wrote:
> You forgot to bracket +/
> On Jan 30, 2014 9:09 AM, "Pascal Jasmin" <[email protected]> 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