You want m&.> f . Note this is rank 0 already, so no reason for an explicit"0 .
I'm on the road right now so I can't post a fuller explanation, but it might be understandable if you're told that <@m"0 f is equivalent, and that > is both scalar (rank zero) and an identity function on an open (non-boxed) noun. -Dan Please excuse typos; composed on a handheld device. -----Original Message----- From: Justin Paston-Cooper <[email protected]> Sender: [email protected] Date: Tue, 7 Sep 2010 21:09:37 To: <[email protected]> Reply-To: Programming forum <[email protected]> Subject: [Jprogramming] Collecting Results 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. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
