[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string> missing?
From: |
Tassilo Horn |
Subject: |
Re: string> missing? |
Date: |
Wed, 03 Jun 2015 17:26:46 +0200 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
Nicolas Petton <address@hidden> writes:
>>> From: Nicolas Petton <address@hidden> Date: Wed, 03 Jun 2015
>>> 11:05:11 +0200
>>>
>>> I just saw that we do have `string<' (`string-lessp') but we miss
>>> `string>'? Is this on purpose?
>>
>> What would '(string> A B)' do that '(string< B A)' doesn't?
>
> Right, but then why do we have `(> a b)'? For the sake completeness, as
> we have #'> and #'<, I'd add `string>' to Elisp.
With that argument, we'd also need string<= and string>=. But I'd agree
that
(sort #'string> list)
is a bit nicer than
(sort (lambda (a b) (string< b a)) list)
Bye,
Tassilo
signature.asc
Description: PGP signature
- string> missing?, Nicolas Petton, 2015/06/03
- Re: string> missing?, Eli Zaretskii, 2015/06/03
- Re: string> missing?, Nicolas Petton, 2015/06/03
- Re: string> missing?,
Tassilo Horn <=
- Re: string> missing?, Nick Andryshak, 2015/06/03
- Re: string> missing?, Eli Zaretskii, 2015/06/03
- Re: string> missing?, Nick Andryshak, 2015/06/03
- Re: string> missing?, Eli Zaretskii, 2015/06/03
- Re: string> missing?, Nick Andryshak, 2015/06/03
- Re: string> missing?, Andreas Schwab, 2015/06/03
- Re: string> missing?, Alan Mackenzie, 2015/06/03
- Re: string> missing?, Eli Zaretskii, 2015/06/03
- Re: string> missing?, Nick Andryshak, 2015/06/03
- Re: string> missing?, Eli Zaretskii, 2015/06/03