No correction required. All indexing in J is “0 origin” (ie Item 0 is the first item, Item 1 is the second item etc).
Just below the line you quoted for “JUPITER” the page includes the following text which clarifies this: Note that the first item of any list is always item 0. Thus 1 index PLANETS pulls out the second row of list PLANETS 0 index PLANETS pulls out the first row of list PLANETS _1 index PLANETS pulls out the last row of list PLANETS So I would leave as is, or could perhaps put the above text before the 1 INDEX is called. HTH Rob > On 1 Dec 2020, at 10:05 am, emacstheviking <[email protected]> wrote: > > Hi, I have found a mistake on this page: > > https://code.jsoftware.com/mediawiki/index.php?title=Vocabulary/JayTaster&oldid=29568 > > IN the section 'Pulling items from a list', in the second code box: > > index=: { > > 1 index PROPS NB. no, not the first item, but the second. > +----+ > |mass| > +----+ > > 1 index PLANETS > jupiter 317.8 11.21 1321 11.86 0.414 > > 1 index PROPS is *not* 'mass' but 'a' > > so either mass needs to become a or the line needs to be > > 1 index ;: PROPS > > I'd make the correction but I am not sure which way to go! I suspect the > latter based on the comment. If that's correct then I will make the edit or > somebody else can. > Another wrinkle bites the dust. > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
