emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/dash 515e2d3 230/439: Use `comparator` instead of `pred


From: Phillip Lord
Subject: [elpa] externals/dash 515e2d3 230/439: Use `comparator` instead of `predicate` for sort.
Date: Tue, 04 Aug 2015 20:28:19 +0000

branch: externals/dash
commit 515e2d398937a54c8f1db9adc27ca7363f0e35a1
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>

    Use `comparator` instead of `predicate` for sort.
---
 dash.el |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dash.el b/dash.el
index 1da0d88..970b743 100644
--- a/dash.el
+++ b/dash.el
@@ -852,12 +852,12 @@ or with `-compare-fn' if that's non-nil."
 
 (defalias '-contains-p '-contains?)
 
-(defun -sort (predicate list)
-  "Sort LIST, stably, comparing elements using PREDICATE.
+(defun -sort (comparator list)
+  "Sort LIST, stably, comparing elements using COMPARATOR.
 Returns the sorted list.  LIST is NOT modified by side effects.
-PREDICATE is called with two elements of LIST, and should return non-nil
+COMPARATOR is called with two elements of LIST, and should return non-nil
 if the first element should sort before the second."
-  (sort (copy-sequence list) predicate))
+  (sort (copy-sequence list) comparator))
 
 (defmacro --sort (form list)
   "Anaphoric form of `-sort'."



reply via email to

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