The key is rank, and dyadic rank "
u"(l, r) is u(" l r), where l and r specify the cell size of x and y for how u
will be applied.
,"_ 0 is u = , l = _ r = 0
54 48,"1 0 i.10 NB. produces same result.
u"0 means apply u to atoms
u"1 to rows at a time
u"2 to tables at a time
u"_ to whole argument.
understanding ,"(l,r) is more important than knowing ,. exists for me because I
usually forget its ,"(l,r) equivalence, and ," is always more intentful. "
being applicable to all J verbs makes it a very important concept. Using it
with , is a good way to experiment with it, and will usually provide a way to
"stitch" parameters in all the ways you might want to.
On Tuesday, December 6, 2022 at 04:49:54 p.m. EST, 'Skip Cave' via Programming
<[email protected]> wrote:
Elijah,
that's what I want!
54 48,"_ 0 i.10
54 48 0
54 48 1
54 48 2
54 48 3
54 48 4
54 48 5
54 48 6
54 48 7
54 48 8
54 48 9
Where can I find the documentation on *,"_ 0 * ??
Skip Cave
Cave Consulting LLC
On Tue, Dec 6, 2022 at 1:32 AM Elijah Stone <[email protected]> wrote:
> ,. is ,"_1; in other words, catenate corresponding cells of each argument.
> 54 48 has 2 cells, but i.10 has 10 cells; that doesn't work.
>
> Perhaps you want 54 48 ,"_ 0 i.10.
>
> On Tue, 6 Dec 2022, 'Skip Cave' via Programming wrote:
>
> > I can add a column of increasing integers to a fixed integer:
> >
> > 48,.i.10
> >
> > 48 0
> >
> > 48 1
> >
> > 48 2
> >
> > 48 3
> >
> > 48 4
> >
> > 48 5
> >
> > 48 6
> >
> > 48 7
> >
> > 48 8
> >
> > 48 9
> >
> >
> > Now I want to add the same increasing column to *two* fixed integers:
> >
> > 54 48,.i.10
> >
> > |length error
> >
> > | 54 48 ,.i.10
> >
> >
> > Why doesn't this work?
> >
> > Skip Cave
> > Cave Consulting LLC
> > ----------------------------------------------------------------------
> > 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