Thank you. Willco.

On Mon, Apr 22, 2019 at 5:52 PM Henry Rich <[email protected]> wrote:

> If you want to keep using replace you can change the offending k} to
> (<"0 k)}  .
>
> Henry Rich
>
> On 4/22/2019 10:54 AM, chris burke wrote:
> > Hi Pablo
> >
> > That replace function is not in the distribution. Perhaps you could use
> the
> > distributed rplc, i.e.
> >
> > 'abcdef' replace 'ab'
> >
> > |value error
> >
> > | 'abcdef' replace'ab'
> >
> >
> > 'abcdef' rplc 'ab'
> >
> > bbcdef
> >
> >
> > The behavior of } has changed in 901, see
> > https://code.jsoftware.com/wiki/System/ReleaseNotes/J901
> >
> > Also, please send comments on the beta to the beta forum, thanks.
> >
> > Chris
> >
> >
> >
> > On Mon, Apr 22, 2019 at 7:42 AM Pablo Landherr <[email protected]
> >
> > wrote:
> >
> >> The replace verb is a utility (can't remember from which library). Been
> >> using it forever, but now it seems broken. Any thoughts?
> >>
> >> Kind regards,
> >> Pablo
> >>
> >> 9!:14 ''
> >>
> >> j901/j64/darwin/beta-c/commercial/www.jsoftware.com/2019-04-03T11:20:32
> >>
> >> 'abcdef' replace 'ab'
> >>
> >> |nonce error: replace
> >>
> >> | q k}x
> >>
> >> replace
> >>
> >> 4 : 0
> >>
> >> 'p q'=. y
> >>
> >> j=. p nosindx x
> >>
> >> if. ''-:j do. x return. end.
> >>
> >> d=. p-&#q
> >>
> >> k=. (j+(0>.-d)*i.#j)+/i.#q
> >>
> >> select. *d
> >>
> >> case. 1 do. (0 (j+/(#q)+i.d)}1$~#x) # q k}x
> >>
> >> case. 0 do. q k}x
> >>
> >> case. _1 do. q k} (0 (d{."1 k)}1$~(#x)+(#j)*|d) #^:_1 x
> >>
> >> end.
> >>
> >> )
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >>
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
>
> ---
> This email has been checked for viruses by AVG.
> https://www.avg.com
>
> ----------------------------------------------------------------------
> 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