[Jprogramming] How m"n shoulda been defined
Don Guinn
donguinn at gmail.com
Sun Aug 9 23:13:10 UTC 2015
J verbs a noun when rank is applied. I always like that expression "Any
noun can be verbed".
v=.2 1 3"_
v
+-----+-+-+
|2 1 3|"|_|
+-----+-+-+
v 1 2
2 1 3
v0=.2 1 3"0
v0
+-----+-+-+
|2 1 3|"|0|
+-----+-+-+
v0 1 2
2 1 3
2 1 3
On Sun, Aug 9, 2015 at 5:08 PM, Raul Miller <rauldmiller at gmail.com> wrote:
> 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 <HenryHRich at nc.rr.com> 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
>
More information about the Programming
mailing list