On Mon, Dec 09, 2024 at 07:14:10PM +0000, Stefan Schmiedl wrote:
> ------ Original Message ------
> > From to...@tuxteam.de

[...]

> > This seems the intention. But since it accepts an arbitrary "less"
> > function, it ends being iffy. How do you go from some "less" to a
> > "less-or-equal" without running into undecidability dark alleys?
> > 
> Well, the iffyness is managed by the programmer, who chooses the
> comparison function.
> 
> Do you have an example of such an iffy set?

I think Mikael just posted one, in another arm of this thread
(comparing pairs where only the car is relevant, i.e.

  (lambda (p1 p2) (< (car p1) (car p2)))

Then you'd need a corresponding equal, because otherwise you
end up with things which are neither less nor equal nor greater,
i.e. the ordering isn't total, which is bad for sorting :)

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature

            • R... Mikael Djurfeldt
              • ... Jeremy Korwin-Zmijowski
            • R... tomas
              • ... Mikael Djurfeldt
              • ... Mikael Djurfeldt
              • ... tomas
              • ... Mikael Djurfeldt
      • Re[2]: sorted? Stefan Schmiedl
        • Re: sorted... tomas
          • Re[2]:... Stefan Schmiedl
            • R... tomas
              • ... Mikael Djurfeldt
              • ... Mikael Djurfeldt
              • ... tomas
              • ... Mikael Djurfeldt
              • ... Maxime Devos via General Guile related discussions
              • ... Maxime Devos via General Guile related discussions
          • RE: so... Maxime Devos via General Guile related discussions
      • RE: sorted? Maxime Devos via General Guile related discussions
  • RE: sorted? Maxime Devos via General Guile related discussions

Reply via email to