Sorry! Misunderstood / read too fast. Devon’s using expand is the way to go. Does this do what you want?
]t=: 0,.#:0 14 14 0 0 0 0 0 0 0 1 1 1 0 0 1 1 1 0 0 0 0 0 0 (,t) #inv ,10+i.2 3 0 0 0 0 0 0 10 11 12 0 0 13 14 15 0 0 0 0 0 0 Hope this is better, Louis > On 27 Apr 2019, at 17:31, Brian Schott <[email protected]> wrote: > > Devon, your result looses the middle zero's, but may be the only way to go. > I'll have to play more with your idea, or find another solution > > Louis, > > That helps a little, but I want my result to start with 6 zeros. > So I want x#10 11 12 to produce 0 0 0 0 0 0 10 11 12 . > > But instead I can only get results like the following. > > 1j6 1 1 # 10 11 12 NB. 10 in the wrong place > 10 0 0 0 0 0 0 11 12 > 0j6 1 1 # 10 11 12 NB. where's the 10? > 0 0 0 0 0 0 11 12 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
