emacs-diffs
[Top][All Lists]
Advanced

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

scratch/sort-key 6d448cce870 6/7: value-less-p: add NEWS entry


From: Mattias Engdegård
Subject: scratch/sort-key 6d448cce870 6/7: value-less-p: add NEWS entry
Date: Wed, 20 Mar 2024 14:55:01 -0400 (EDT)

branch: scratch/sort-key
commit 6d448cce8701da603179b45318fc83ad5c3881c6
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    value-less-p: add NEWS entry
---
 etc/NEWS | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/etc/NEWS b/etc/NEWS
index 69e61d91b0e..ccae29f6799 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1702,6 +1702,14 @@ precedence over the variable when present.
 Mostly used internally to do a kind of topological sort of
 inheritance hierarchies.
 
+** New polymorphic comparison function 'value-less-p'.
+This function returns non-nil if the first argument is less than the
+second.  It works for any two values of the same type with reasonable
+ordering for numbers, strings, symbols, lists, vectors, records,
+bool-vectors, markers, buffers and processes.
+It is intended as a convenient ordering predicate for sorting, and is
+likely to be faster than hand-written Lisp functions.
+
 ** New function 'sort-on'.
 This function implements the Schwartzian transform, and is appropriate
 for sorting lists when the computation of the sort key of a list



reply via email to

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