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
