On Wed, Oct 12, 2011 at 2:02 PM, Ric Sherlock <[email protected]> wrote:
>
> As you can see spaces (because it is a literal array) have been added
> to pad the shorter items in test to the length of the widest items.
> If you want to prevent this, then you will need to box each item. e.g.
>
> ]test=.(6&{. , _6&{.) <@p 3^~i.9000x
An alternative is to process the numbers as part of what is currently
p so that they will then produce a rectangular array. e.g.
(#~ ('124678' -:"1 /:~)&":"0) 3 ^~ i. 100
681472
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm