June wrote:
>  To follow the problem statement precisely ...

... then LFs  __separate__ lines.  That is, there is no trailing LF.  To be 
strict, you'll have to add it manually, or  ;._2  won't do what you're 
expecting.   

That would lengthen the solution.  To compensate, you might consider that 
there's no reason to make the solution a stand-alone, assignable verb (which 
won't work with  1!:1]3   anwway).    You could probably save some characters 
by using an immex expression instead (i.e. skip the  @  and the  [:  and all 
that).

-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to