Thanks Don for the explanation. it is clear now to me.

On Sun, Jul 14, 2019 at 1:29 PM Don Guinn <[email protected]> wrote:

> # means "count", not rank. It returns "3" because there are 3 items in the
> list.
>
> $$1 2 3
>
> 1
>
>
> Gives "1". $ produces a list of the dimensions of its argument which is the
> number "3". There is only one number in the list giving the rank of the
> argument.
>
> On Sun, Jul 14, 2019 at 12:22 PM Leonardo Sandoval <[email protected]>
> wrote:
>
> > I am just new to J, although this is the second attempt to learn the
> > language. As a introductory book, I started with 'the primer book',
> really
> > nice book and quite easy to follow. I am on page p66, where the rank term
> > is explained
> >
> > "the rank of a noun is the count of its axes....".
> >
> > SO it is basically the number of dimensions (atoms=0, lists=1, table=2,
> > ...).
> >
> > Based on the latter, why the rank of a list gives 3?
> >
> > # 1 2 3
> >
> > 3
> >
> >
> > I would expect 1, because a list has 1 axis.
> >
> >
> > Thanks for your help.
> > ----------------------------------------------------------------------
> > 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