Terrence, Thank you for being what Fowler called "that pestilential fellow the critical reader". Only new eyes can find new inconsistencies, it seems.
0. Just as in C, every atom of an array must have the same type. Just before this I alluded to the fact that there is a type of atom that resembles a structure, and I think that's all I want to say about it. I have added the text and can contain components of different types following the word 'structure' in the previous paragraph. 1. 'cell size' Agreed that I shouldn't have used that word. I have replaced the first couple of sentences with Each time you operate on an array, you decide the rank of the cells to be operated on. The rank of the cells is not a property of the array; rather, it indicates how you want to group the atoms of the array for a single operation. When you have decided to operate on cells of rank n, you can then think of your noun as an array of n-cells; the shape of that array of cells is called the frame of the noun relative to n-cells. Is that better? 2. Frame and shape The way I read the table, my examples on the array with shape 4 5 6 show frame 4 and shape 5 6, which is correct. Please show exactly where I say frame 5 6 and shape 4 . 3. Atoms vs single-item arrays I hope you have seen from the other responses that it ain't so that atoms have rank 1. They have rank 0 by definition, and you just have to accept that. I'm a little sad that you have stopped going through the 'Introductory Course in J' lab, because it could benefit from meticulous reading too. If you get back to it I'll be happy to fix what you find. Henry Rich > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Terrence Brannon > Sent: Sunday, April 01, 2007 3:49 PM > To: General forum > Subject: [Jgeneral] "J for C programmers" - homogenous array only??? > > <quote href="http://www.jsoftware.com/help/jforc/declarations.htm"> > Just as in C, every atom of an array must have the same type." > </quote> > > > Ok, so the issue becomes, what if you pull a name, age, and > date from a > database using J? > > What if I am mapping provider_id (integer) to rating (float)? > > How does one get heterogeneous list structures, or get around it? > ---------------------------------------------------------------------- > For information about J forums see > http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
