[Top][All Lists]
[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.
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, (continued)
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Bastien, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Bastien, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Pascal J. Bourguignon, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Stefan Monnier, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Lennart Borgman, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Bastien, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?,
Lennart Borgman <=
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Andreas Schwab, 2012/07/16
- Re: Why (substring "abc" 0 4) does not return "abc" instead of an error?, Juanma Barranquero, 2012/07/16