Of course, the easiest one with least modification is,
a:-.~<@(;:^:_1);._2 l,<'' 2007/6/10, June Kim <[EMAIL PROTECTED]>:
Thanks. I missed another case, when there are two or more lines between paragraphs(ignore them): l=: <;._2 (0 : 0) This is the first paragraph. And the second ) para l +----------------------------+--------------+ |This is the first paragraph.|And the second| +----------------------------+--------------+ How would you define para? It gets a little bit complexed now. 2007/6/10, Henry Rich <[EMAIL PROTECTED]>: > Same idea: > > ([,' ',])&.>/;._2 l,<'' > > Different idea: > > <@(;:^:_1);._2 l,<'' > > Henry Rich > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of June Kim > > Sent: Saturday, June 09, 2007 10:55 AM > > To: Programming forum > > Subject: [Jprogramming] concatenating lines into paragraphs > > > > l=: <;._2 (0 : 0) > > This is the > > first paragraph. > > > > And the second > > ) > > ((0 = #)&> ([,' ',])&.>/;._2 ]) l,<'' > > > > Easier way to do this? > > ---------------------------------------------------------------------- > > For information about J forums see > > http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm >
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
