[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
- branch scratch/sort-key created (now a12e41ab540), Mattias Engdegård, 2024/03/20
- scratch/sort-key c0dd5d38c74 2/7: sort: new keyword argument calling convention, Mattias Engdegård, 2024/03/20
- scratch/sort-key 8d60d8bbcfb 1/7: sort: add back timsort key function handling, Mattias Engdegård, 2024/03/20
- scratch/sort-key 0ef023eabf4 4/7: sort: make :lessp default to `value-less-p`, Mattias Engdegård, 2024/03/20
- scratch/sort-key 2b1d4c33fd1 5/7: sort: add test for the keyword args, Mattias Engdegård, 2024/03/20
- scratch/sort-key 6d448cce870 6/7: value-less-p: add NEWS entry,
Mattias Engdegård <=
- scratch/sort-key b0a32c899b4 3/7: Add value-less-p, Mattias Engdegård, 2024/03/20
- scratch/sort-key a12e41ab540 7/7: sort: add NEWS entry, Mattias Engdegård, 2024/03/20