Ahhh. Thanks. I would need that later on. :)
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sherlock, Ric Sent: Wednesday, August 27, 2008 4:38 PM To: Programming forum Subject: RE: [Jprogramming] selection n00bness ---Alex Rufon wrote: > Just curious ... what do you mean by "scattered indexing"? For the case of a table (rank-2 array) you don't have to get items from all the columns specified for every row. The items you retrieve can be arbitrarily scattered throughout the array. So if instead of the items in 2nd,4th and 3rd columns of rows 1 and 2 (<1 2;2 4 3), you only wanted the items in the 2nd and 3rd columns of row 1 and the item in the 4th column of row 2 you could specify (1 2;1 3;2 4){i.10 10 12 13 24 The shape of the boxed indexes just determines the shape of the result so: (2 2$ 1 2;3 9;7 4;2 5){ i.10 10 12 39 74 25 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
