Thanks.

load 'strings'
n =:;  <@(rplc&('\)';')'));.2 (0 : 0)
((
abc
defg
\)
lmn
\)
)

It's ugly but tolerable.

2006/12/17, Henry Rich <[EMAIL PROTECTED]>:
You could put an extra character like 'x' at the beginning of each
line and then remove it with

n =: ; <@}.;.2 (0 : 0)
x)
etc.
)

Henry Rich

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of June Kim
> Sent: Sunday, December 17, 2006 8:40 AM
> To: Programming forum
> Subject: [Jprogramming] 0 : 0 including right paren?
>
> Suppose you want to make a string noun S with the following content,
> for instance:
>
> ((
> abc
> defg
> )
> lmn
> )
>
> Directly putting the string in a script with 0 : 0 isn't possible, due
> to the right paren's special meaning. What is the conventional way of
> achieving this in J?
> ----------------------------------------------------------------------
> 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

Reply via email to