; * dash.el (-sort): Add comment on sort :lessp.

master
Basil L. Contovounesios 2 years ago
parent e018d76699
commit 885332bbc4
No known key found for this signature in database
GPG Key ID: 598403058CAFA86C
  1. 2
      dash.el

@ -3298,6 +3298,8 @@ Return the sorted list. LIST is NOT modified by side effects.
COMPARATOR is called with two elements of LIST, and should return non-nil
if the first element should sort before the second."
(declare (important-return-value t))
;; Not yet worth changing to (sort list :lessp comparator);
;; still seems as fast or slightly faster.
(sort (copy-sequence list) comparator))
(defmacro --sort (form list)

Loading…
Cancel
Save