,. CAN specify fill, as shown in the examples below. My guess is that you are confusing 'scalar replication' with 'fill'. When the argument to , is a scalar, it is replicated, not padded with fills. So you have to make the items have at least rank 1 before you can see actual filling.
Last example below shows fills: (i. 2 2 3) ,.!.99 ] 0 0 1 2 3 4 5 0 0 0 6 7 8 9 10 11 0 0 0 (i. 2 2 3) ,.!.99 ] 1 2 0 1 2 3 4 5 1 1 1 6 7 8 9 10 11 2 2 2 (i. 2 2 3) ,.!.99 ] ,. 1 2 0 1 2 3 4 5 1 99 99 6 7 8 9 10 11 2 99 99 Henry Rich > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Hahn, Harvey > Sent: Tuesday, July 22, 2008 9:55 PM > To: Programming forum > Subject: [Jprogramming] Question re: assembling data > > I can never seem to keep straight which primitive joins/assembles data > in which way, and so I created a "cheatsheet" for myself of > the patterns > involved. In so doing, however, I noticed an interesting > quasi-anomaly > that I was curious about: > > "Append" (,) and "laminate" (,:) join various combinations of > tables and > lists of differing sizes using fill characters as necessary > to fill out > the joined/assembled data. Why does "stitch" (,.) NOT use (or is > incapable of using) fill characters in the same way? In other words, > what is there about stitching two tables, a table and a list, or two > lists where differing sizes are involved that prohibits > filling to match > sizes? Why is "stitch" different? Is there some underlying structure > or meaning involved? I mean, I could manually do some "filling", and > then I could use "stitch"--why can it not happen automatically? I'm > just trying to learn more about how J works, and I was curious about > this seeming "anomaly" in the patterns for joining data. > (The patterns > are quite organized, and even this "anomaly" has a pattern.) > Thanks for > any insights! > > Harvey > > ---------------------------------------------------------------------- > For information about J forums see > http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
