Martin Neitzel argued convincingly years ago that you can not use !. to specify the fill used in making result cells to have the same shape.
Another name for the !. conjunction is "ad hoc", which gives you some idea of the esteem in which it is held. ----- Original Message ----- From: Marshall Lochbaum <[email protected]> Date: Tuesday, September 7, 2010 15:20 Subject: Re: [Jprogramming] Collecting Results To: 'Programming forum' <[email protected]> > Or you could do something with !. to make the fills, say, _ . I > don't know > exactly how this would work, though. > > Marshall > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Raul Miller > Sent: Tuesday, September 07, 2010 5:40 PM > To: Programming forum > Subject: Re: [Jprogramming] Collecting Results > > On Tue, Sep 7, 2010 at 4:09 PM, Justin Paston-Cooper > <[email protected]> wrote: > > Hello, > > > > Let's say I have a monad m " 0 and a 1-dimensional array f. > The monad > > returns 1-dimensional arrays of varying results which may > include 0. I > > would like to efficiently apply the monad m to array f and > collect the > > results returned by m in a 1-dimensional array. m f would not > be > > satisfactory because 0s may be added to the ends of the > results which > > are shorter than the longest result. Is this possible? Thanks > for your > > advice in advance. > > In addition to using each (which is defined as &.>), you might > try putting > your results in a different domain (where extra zeros do not matter. > > -- > Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
