[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 515e2d3 230/426: Use `comparator` instead of `pred
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 515e2d3 230/426: Use `comparator` instead of `predicate` for sort. |
Date: |
Tue, 04 Aug 2015 19:37:56 +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/426: Update docs too, (continued)
- [elpa] externals/dash 6911514 221/426: Update docs too, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9a149bf 219/426: Add anaphoric example to --max-by and --min-by, Phillip Lord, 2015/08/04
- [elpa] externals/dash 4a144c6 220/426: Release 2.0.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash d374fcc 214/426: Revert "Add combinators", Phillip Lord, 2015/08/04
- [elpa] externals/dash 2a7fbdc 218/426: Update -max-by & friends, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6d0a8d6 225/426: Add Version and Package-Requires to files #45, Phillip Lord, 2015/08/04
- [elpa] externals/dash d365f22 222/426: Fix byte compile warnings, Phillip Lord, 2015/08/04
- [elpa] externals/dash 81e43ad 229/426: Add -union to list of highlighted symbols., Phillip Lord, 2015/08/04
- [elpa] externals/dash 9b0166a 224/426: Fix terminology, Phillip Lord, 2015/08/04
- [elpa] externals/dash dbcb3ef 231/426: Update README, Phillip Lord, 2015/08/04
- [elpa] externals/dash 515e2d3 230/426: Use `comparator` instead of `predicate` for sort.,
Phillip Lord <=
- [elpa] externals/dash f1049f1 216/426: Add dash-functional back, now dependent on dash.el, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6cc7727 234/426: Release 2.1.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash 39d20f2 228/426: Release 2.0.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash 20eb331 237/426: Updates the documentation., Phillip Lord, 2015/08/04
- [elpa] externals/dash 6eeb692 236/426: Provide an implementation of function composition., Phillip Lord, 2015/08/04
- [elpa] externals/dash 1812a17 226/426: Complete dash and dash-functional split, Phillip Lord, 2015/08/04
- [elpa] externals/dash 13e0a35 240/426: Release 2.2.0, Phillip Lord, 2015/08/04
- [elpa] externals/dash 5232399 238/426: Merge pull request #50 from kurisuwhyte/master, Phillip Lord, 2015/08/04
- [elpa] externals/dash 87c8b91 232/426: Add indexing operations, Phillip Lord, 2015/08/04
- [elpa] externals/dash 6d20aa0 241/426: If has an indent function 2, not 1, Phillip Lord, 2015/08/04