Yes.

In general, we want the gerund to apply to cells of specified rank, not just items.


Henry Rich

On 8/9/2015 9:01 PM, Jose Mario Quintana wrote:
    Rank=. ($~ #@]) invoke f."_1 ]

    (-:`+:) Rank i.3 4
0 0.5  1 1.5
8  10 12  14
4 4.5  5 5.5

    (-:`+:`*:) Rank i.3 4
  0 0.5   1 1.5
  8  10  12  14
64  81 100 121


On Sun, Aug 9, 2015 at 7:58 PM, 'Pascal Jasmin' via Programming <
[email protected]> wrote:

The alternatives to m"n aren't terrible.  We have all made sensible
workarounds.

Of those workarounds, I strongly prefer # to $ as the selector.

posting new definitions that saddly won't work unless definitions from
other thread are gattered,

lvProcsRest =: (1 : '(> {: m) eval }: m')

lvProcsStrand =: 'lrS lvProcsRest eval' aatrainaltMs =:  ('apply every~
(',  ') $~#',~ lr ) lvProcsStrand

   9: -: +: altMs
apply&>~ ((<;._1 ' (-:) (+:)') $~ #)

This seems to me to be the most likely thing to want

   9: -: +: *: altMs"1 i.3 4
0  2   4 1.5
2 10  36 3.5
4 18 100 5.5


   9: -: +: *: altMs i.3 4
0 0.5   1 1.5
8  10  12  14
64  81 100 121



----- Original Message -----
From: Raul Miller <[email protected]>
To: Programming forum <[email protected]>
Cc:
Sent: Sunday, August 9, 2015 7:08 PM
Subject: Re: [Jprogramming] How m"n shoulda been defined

I'm still not clear on what "apply the selected verb to each cell" means
here.

Which of these three cases should be the consequence of (+`-"1 i.3 4)
and why is that the right choice?

length error

1 _1 1*i.3 4

1 _1 1 _1*"1 i.3 4

Thanks,

--
Raul
--
Raul

On Sun, Aug 9, 2015 at 6:52 PM, Henry Rich <[email protected]> wrote:
The rank of those verbs doesn't enter into it.

+`-;.2 for example means 'partition y, then apply the selected verb to
the
partition'.

Same with +`|."2 y for example.  Break y into 2-cells, then apply the
selected verb to each cell.

Henry Rich

On 8/9/2015 6:38 PM, Raul Miller wrote:

Hmm... but what should the effect be when the verbs in the gerund are
not rank zero?

----------------------------------------------------------------------
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

Reply via email to