[Top][All Lists]

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

[elpa] externals/dash 3802890 082/439: Simplify !concat

From: Phillip Lord
Subject: [elpa] externals/dash 3802890 082/439: Simplify !concat
Date: Tue, 04 Aug 2015 20:26:39 +0000

branch: externals/dash
commit 3802890436c8468212932cc388edc352f1ddfdca
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>

    Simplify !concat
 bang.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bang.el b/bang.el
index 91918aa..aab0a48 100644
--- a/bang.el
+++ b/bang.el
@@ -133,11 +133,11 @@ Alias: `!reject'"
 (defun !concat (&rest lists)
   "Returns a new list with the concatenation of the elements in
 the supplied LISTS."
-  (apply 'append (append lists '(nil))))
+  (apply 'append lists))
 (defmacro !!mapcat (form list)
   "Anaphoric form of `!mapcat'."
-  `(apply '!concat (!!map ,form ,list)))
+  `(apply 'append (!!map ,form ,list)))
 (defun !mapcat (fn list)
   "Returns the result of applying concat to the result of applying map to FN 
and LIST.

reply via email to

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