Newsgroups: comp.lang.apl Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!news.cs.indiana.edu!maytag!watmath!ljdickey From: ljdickey@watmath.waterloo.edu (L.J.Dickey) Subject: Rank 0 catenation. Message-ID: <1991Jun24.161151.12366@watmath.waterloo.edu> Keywords: rank, catenate , array , box Organization: University of Waterloo Date: Mon, 24 Jun 1991 16:11:51 GMT Lines: 41 Someone wrote recently asking about how to glue some given arrays together to create certain specified results. Here is the question. ========================= ========================== ========================= Suppose one is given the three arrays: a =. < " 0 m =. i. 2 3 b =. < "(0) m + 12 c =. < "(0) m + 24 How does one use these to create arrays d and e, whose displays are d +----+----+----+ |0 12|1 13|2 14| +----+----+----+ |3 15|4 16|5 17| +----+----+----+ e +-------+-------+-------+ |0 12 24|1 13 25|2 14 26| +-------+-------+-------+ |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? -- Prof L.J. Dickey, Faculty of Mathematics, U of Waterloo, Canada N2L 3G1 internet: ljdickey@watmath.UWaterloo.ca BITNET/EARN: ljdickey@watdcs obsolescent?: ljdickey@watmath.waterloo.edu UUCP: ljdickey@watmath.UUCP ..!uunet!watmath!ljdickey