Well, hmm...  you can use an explicit wrapper:

 A=:".;._2]0 :0
    0  0 0.034
    1 25 0.059
  1.4 55 0.094
    2 85     0
)

B=:|:4#,:2 2 1

   B 4 :'x}y'"1 _|:A
0.034 0.059 0.094  0
0.034 0.059 0.094  0
    0    25    55 85

But you can also accomplish the same thing with a gerund:

   0&{::`(1&{::)}"1 B;"1 _ |:A
0.034 0.059 0.094  0
0.034 0.059 0.094  0
    0    25    55 85

That said, I guess it is significant that the relevant rank here ("1
_) is applied to the boxer and the unboxer just uses "1 (because that
reflects the organization of the boxes).

Good enough?

Thanks,

-- 
Raul


On Wed, Aug 12, 2015 at 6:47 PM, Henry Rich <[email protected]> wrote:
> I still don't see how you get a rank on m.
>
> You can't use an x argument, because then you'd be doing dyad m}.  And in
> the gerund form,
>
> (v1`v2)} y is (v1 y)} (v2 y)
>
> and you can't put a rank on the selection operation that way either.
>
> Henry Rich
>
> On 8/12/2015 10:41 AM, Raul Miller wrote:
>>
>> Oops, I overlooked that issue.
>>
>> But of course, there is a way of giving rank to m - you just have to
>> change the expression (use gerund form of } which extracts m out as an
>> argument, for example).
>>
> ----------------------------------------------------------------------
> 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