I should also note that in my first draft of that String Indexing
essay, I tried too hard to be efficient and, in the process,
introduced an error (at least in terms of my intended result). I've
since fixed that error.

Thanks,

-- 
Raul

On Thu, Mar 17, 2022 at 5:44 PM Raul Miller <[email protected]> wrote:
>
> On Thu, Mar 17, 2022 at 2:30 PM Henry Rich <[email protected]> wrote:
> > That's what I wanted to know.  I find it hard to come up with definitions
> > of 'match' and 'position' that justify this result.
>
> I would use pairs: index (of start) and length.
>
> Since this topic might eventually be of general interest, I threw
> together an essay:
>
> https://code.jsoftware.com/wiki/Essays/String_Indexing
>
> Some of the mechanisms I used there could stand to be made more efficient.
>
> The search and replace mechanism I illustrated there is a relatively
> simple model and might or might not be thought of as representing an
> adequate replacement for stringreplace.
>
> Thanks,
>
> --
> Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to