emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?


From: Lennart Borgman
Subject: Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?
Date: Tue, 17 Jul 2012 00:53:48 +0200

On Tue, Jul 17, 2012 at 12:48 AM, Bastien <address@hidden> wrote:
> Lennart Borgman <address@hidden> writes:
>
>> I really disagree.
>
> Would `string-head' suits your needs?
>
> I find out that most of the use-cases I have for my slackfull
> error-free substring version, is when the first index is 0.
>
> So this is the same than `string-head', really.
>
> `string-head' is also what Lars would need in the example he
> gave.

I think I like your suggestion with a fourth argument to substring better.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]