Re: string-range Wolfgang Corcoran-Mathe 02 Sep 2020 14:49 UTC

On 2020-09-02 15:14 +0200, Marc Nieper-Wißkirchen wrote:
> In this spirit, I would also want to suggest
>
> (string-range STRING)
>
> a range constructor that takes a string and does the obvious thing. As
> with vector-range, the argument mustn't be modified later.
>
> [snip]
>
> The nice thing is it is transparent for the user who just wants to
> examine a string character-wise. He or she just has to work with
> (string-range s) instead of s directly.

Excellent points, I like it.  Added to my repository.

Thanks very much.

--
Wolfgang Corcoran-Mathe  <xxxxxx@sigwinch.xyz>

"Karate begins with courtesy and ends with it." --Shoshin Nagamine