[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'."
- [elpa] externals/dash 6911514 221/439: Update docs too, (continued)
- [elpa] externals/dash 6911514 221/439: Update docs too, Phillip Lord, 2015/08/04
- [elpa] externals/dash 86de963 217/439: Add docs about require for dash-functional, Phillip Lord, 2015/08/04
- [elpa] externals/dash 4a144c6 220/439: Release 2.0.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9b0166a 224/439: Fix terminology, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6d0a8d6 225/439: Add Version and Package-Requires to files #45, Phillip Lord, 2015/08/04
- [elpa] externals/dash d365f22 222/439: Fix byte compile warnings, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1812a17 226/439: Complete dash and dash-functional split, Phillip Lord, 2015/08/04
- [elpa] externals/dash f1049f1 216/439: Add dash-functional back, now dependent on dash.el, Phillip Lord, 2015/08/04
- [elpa] externals/dash 39d20f2 228/439: Release 2.0.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash 81e43ad 229/439: Add -union to list of highlighted symbols., Phillip Lord, 2015/08/04
- [elpa] externals/dash 515e2d3 230/439: Use `comparator` instead of `predicate` for sort.,
Phillip Lord <=
- [elpa] externals/dash 6cc7727 234/439: Release 2.1.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6eeb692 236/439: Provide an implementation of function composition., Phillip Lord, 2015/08/04
- [elpa] externals/dash 23ab726 227/439: Improve formatting of docs, Phillip Lord, 2015/08/04
- [elpa] externals/dash 87c8b91 232/439: Add indexing operations, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1e2bd96 233/439: Merge pull request #48 from Fuco1/index-operations, Phillip Lord, 2015/08/04
- [elpa] externals/dash 5232399 238/439: Merge pull request #50 from kurisuwhyte/master, Phillip Lord, 2015/08/04
- [elpa] externals/dash 20eb331 237/439: Updates the documentation., Phillip Lord, 2015/08/04
- [elpa] externals/dash 6d43c4f 235/439: Fix switched around doc strings for -find-index/indices, Phillip Lord, 2015/08/04
- [elpa] externals/dash 13e0a35 240/439: Release 2.2.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash dbcb3ef 231/439: Update README, Phillip Lord, 2015/08/04