[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lexicographic list comparison
From: |
Stefan Monnier |
Subject: |
Re: lexicographic list comparison |
Date: |
Mon, 12 Sep 2022 15:32:03 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Sam Steingold [2022-09-12 14:41:47] wrote:
>> * Stefan Monnier <zbaavre@veb.hzbagerny.pn> [2022-09-12 14:31:33 -0400]:
>> [ Tho I suspect you'll want those comparison functions to return
>> a -1/0/1 result rather than just a boolean, so you'd need an extra
>> combinator to turn such a comparison function into the kind expected
>> by `sort`. ]
>
> The predicate argument to lisp sort returns a boolean.
Indeed, but `list-compare` will likely want the other kind, hence the
need for combinators that change from kind to the other.
Stefan