Henry wrote:
> You could put an extra character like 'x' at the beginning of
> each line and then remove it with ; <@}.;.2 (0 : 0)
I do this all the time, but the extra character I use is a tab.
n=: ; <@:}.;.2 noun define
((
abc
defg
)
1mn
)
)
If you use the J editor, then just enter your noun as normal, then
highlight/select it, and press the TAB key (to undo it, press
SHIFT+TAB).
Caveat: the character has to be tab (9{a.) and NOT space (32{a.). Although
the DoJ says that an :0 entity is "terminated by a
lone right parenthesis ", the implementation grants a dispensation to the space
character (so a right paren preceded and/or
suceeded by any number of spaces still terminates a script).
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm