June Kim wrote:
> Thanks, but it wouldn't work when t includes (3 : 0) style
> multi-line definitions.

Here's one approach:

[1] Distinguish between value lines and continuation lines
using some pattern.  For example: continuation lines are
indented while value producing lines are not.

[2] Define a verb 'capture' which captures values (and initialize
its state before each use of this mechanism).

[4] Manipulate your script, t, to insert the capture verb
appropriately, for example:
   require 'regex'
   '\n[^ )]' (LF,'capture ',}.) rxapply LF,t

[5] Run the modified script using 110!:0 

-- 
Raul

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

Reply via email to