very interesting... particularly the -.LF part. is m is the left-hand verb argument of the adverb? I suppose it is an 'adjective' in this usage.
thanks, -Steven On 17 January 2013 14:58, Raul Miller <[email protected]> wrote: > Of course, if you use 0 :0 you do not need to quote your strings. > > If you are trying to build a verb that uses a single large string, you > might want to use (0 :0)(1 :0) instead of 3 :0. > > If you define two blocks from the same line, and both block references > are parenthesized, you need to provide the right block's text before > you provide the left block's text. (If you instead use (0 :0)1 :0 the > block order would be reversed.) > > example=: (0 :0)(1 :0) > y,m,y > : > x,m,y > ) > 'stuff' > ) > example '*' > *'stuff' > * > '<' example '>' > <'stuff' > > > > If you do not want the newline, you might instead use (0 :0-.LF) > > FYI, > > -- > Raul > > On Thu, Jan 17, 2013 at 9:45 AM, Steven Taylor <[email protected]> wrote: > > the motivation here isn't that strong, but I was curious to know if there > > was another form of J that avoided needing double single quotes inside > > strings. > > > > Example 1 (runs): > > > > fa=.0 : 0 > > > > abc > > > > ) > > > > f=:3 : 0 > > > > fa > > > > ) > > > > f'' > > > > > > Example 2 (fails): > > > > f=:3 : 0 > > > > a=.0 : 0 > > > > abc > > > > ) > > > > a > > > > ) > > > > > > f '' > > > > thanks, > > -Steven > > ---------------------------------------------------------------------- > > 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
