You almost had it. I've fixed the error below. Henry Rich
On 6/8/2011 5:41 PM, Squint6 wrote: > > Hi, > > > I have just started with J and I have a question concerning rank (I think). > > > I don't understand why the following does what it does: > > > a=. 2 2 $ i.4 > > > b=.+/a > > > c=.+/"1 a > > > After executing these lines > a contains > 0 1 > 2 3 > b contains 2 4 and > c contains 1 5 > > > I understand where b is coming from but c's value confuses me. Here's how my > (faulty) reasoning about c=.+/"1 a goes. > The "1 applies to the verb (+/) giving it a rank of 1. Therefore (+/) is > applied to the 1-cells of a, > which I believe are the lists (0 1) and (2 3). ERROR FIXED HERE: >Therefore we have (+/ 0 1) , (+/ 2 3) > > > Thanks. > Kent > > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
