Bo, people have provided lots of answers, some to something with 3 rows of 4 1 3 1 3 1 4 # 0 01 1 12 2 23 3 34 4 and others to 3 5 5 $ 5 # i.5
The gratuitous 0 in 01 suggests that the latter output was required. It seems to me that the input in this case could be just 3 5 or perhaps 3 5 5 . Is there a more general problem which you're trying to solve? eg (perhaps) (k,l,m) ==> (k,l,m) $ m # i. l Please explain which output you really want, and what the input should be. Thanks, Mike On 08/06/2016 10:22, 'Bo Jacoby' via Programming wrote:
Dear J'ers. Please tell me how to program the 3 5 5 array below. I am experimenting rather than understanding. I expect the answer to be quite elementary. Thanks! Bo. 0 0 0 0 01 1 1 1 12 2 2 2 23 3 3 3 34 4 4 4 4 0 0 0 0 01 1 1 1 12 2 2 2 23 3 3 3 34 4 4 4 4 0 0 0 0 01 1 1 1 12 2 2 2 23 3 3 3 34 4 4 4 4 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
--- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
