Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!haven.umd.edu!socrates.umd.edu!socrates!rockwell From: rockwell@socrates.umd.edu (Raul Rockwell) Newsgroups: comp.lang.apl Subject: Re: Rank 0 catenation. Message-ID: Date: 25 Jun 91 01:25:53 GMT References: <1991Jun24.161151.12366@watmath.waterloo.edu> Sender: rockwell@socrates.umd.edu (Raul Rockwell) Organization: Traveller Lines: 30 In-Reply-To: ljdickey@watmath.waterloo.edu's message of 24 Jun 91 16: 11:51 GMT L. J. Dickey (paraphrased, slightly): Suppose one is given the three arrays: c =. 12+&.> b =. 12+&.> a=. <"0 i. 2 3 How does one use these to create arrays d and e, whose displays are d e +----+----+----+ +-------+-------+-------+ |0 12|1 13|2 14| |0 12 24|1 13 25|2 14 26| +----+----+----+ +-------+-------+-------+ |3 15|4 16|5 17| |3 15 27|4 16 28|5 17 29| +----+----+----+ +-------+-------+-------+ I found that these expressions do the job: d =. a ,"0 &. > b e =. d (,,"0) &. > c My question is, do you know other ways of doing this? ====================================================================== How about: d =. a ,&.> b e =. ,&.>/ a,b,c ? CAUTION: I don't have a working copy of J on my system so I honestly don't know if that will even work. -- Raul