[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 4acab5d 11/14: Use reverse instead of explicit ite
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 4acab5d 11/14: Use reverse instead of explicit iteration. |
Date: |
Sun, 04 Oct 2015 12:01:03 +0000 |
branch: externals/dash
commit 4acab5d751ad411ed637e8a46dc3280db0ddcabd
Author: Matus Goljer <address@hidden>
Commit: Matus Goljer <address@hidden>
Use reverse instead of explicit iteration.
---
dash.el | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dash.el b/dash.el
index 951ca10..6ecf100 100644
--- a/dash.el
+++ b/dash.el
@@ -1783,8 +1783,7 @@ Alias: `-uniq'"
"Return a new list containing the elements of LIST1 and elements of LIST2
that are not in LIST1.
The test for equality is done with `equal',
or with `-compare-fn' if that's non-nil."
- (let (result)
- (--each list (!cons it result))
+ (let ((result (reverse list)))
(--each list2 (unless (-contains? result it) (!cons it result)))
(nreverse result)))
- [elpa] externals/dash dbe2bf2 10/14: Merge pull request #160 from phillord/feature/gnu-elpa-support, (continued)
- [elpa] externals/dash dbe2bf2 10/14: Merge pull request #160 from phillord/feature/gnu-elpa-support, Phillip Lord, 2015/10/08
- [elpa] externals/dash 3e2e0b5 03/14: Merge pull request #131 from phillord/fix/documentation-for-let, Phillip Lord, 2015/10/08
- [elpa] externals/dash fa90644 14/14: Release 2.12.0, Phillip Lord, 2015/10/08
- [elpa] externals/dash 8fa70c5 12/14: [Fix #101] Use faster hashtable implementation for -union., Phillip Lord, 2015/10/08
- [elpa] externals/dash 66cb6f5 09/14: Merge pull request #146 from holomorph/info-macros, Phillip Lord, 2015/10/08
- [elpa] externals/dash 5d2a73c 07/14: [Fix #155] -is-suffix? no longer destroys input list., Phillip Lord, 2015/10/08
- [elpa] externals/dash 91a2b14 13/14: [Fix #101] Fix reversed condition for hashtable -union., Phillip Lord, 2015/10/08
- [elpa] externals/dash 3ae7335 02/14: Indicate macros in generated info manual, Phillip Lord, 2015/10/08
- [elpa] externals/dash c6c2105 04/14: Add support for GNU ELPA., Phillip Lord, 2015/10/08
- [elpa] externals/dash 7e1c13e 06/14: Add Cam Saül to the readme template as contributor., Phillip Lord, 2015/10/08
- [elpa] externals/dash 4acab5d 11/14: Use reverse instead of explicit iteration.,
Phillip Lord <=