http://www.jsoftware.com/pipermail/programming/2007-July/007279.html and http://www.jsoftware.com/pipermail/programming/2007-July/007302.html
(also) give good alternatives for rplc. R.E. Boss > -----Oorspronkelijk bericht----- > Van: [EMAIL PROTECTED] [mailto:programming- > [EMAIL PROTECTED] Namens Oleg Kobchenko > Verzonden: zondag 2 december 2007 6:24 > Aan: Programming forum > Onderwerp: Re: [Jprogramming] concatenating boxed strings > > rplc is interesting, but it is a little of > an overkill if you consider it's source, and > it is for ranges rather than atoms. > > tr=: ({:@[,]) {~ ([EMAIL PROTECTED],]) i. ] > > ('';' ') ;@tr text > the yellow cat is sleeping > > (('';'the'),:' ';'a') ;@tr text > a yellow cat is sleeping > > > Another possibility > > swap=: 1 : '[`(I.@(x&=)@])`]}' > ; (<' ') a: swap text > the yellow cat is sleeping > > > And finally, > > ;(' '"_)^:(0=#)&.> text > the yellow cat is sleeping > > > --- Raul Miller <[EMAIL PROTECTED]> wrote: > > > On Dec 1, 2007 10:49 PM, June Kim <[EMAIL PROTECTED]> wrote: > > > ; text rplc (a:);<<' ' > > > the yellow cat is sleeping > > > > ; text rplc (a:);<<' ' > > |value error: rplc > > | ;text rplc(a:);<<' ' > > ; text rplc (a:);<<' ' [require'strings' > > the yellow cat is sleeping > > > > > __________________________________________________________________________ > __________ > Get easy, one-click access to your favorites. > Make Yahoo! your homepage. > http://www.yahoo.com/r/hs > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
