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

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

[elpa] externals/dash 8eab3d1 028/439: Slight improvements to map.


From: Phillip Lord
Subject: [elpa] externals/dash 8eab3d1 028/439: Slight improvements to map.
Date: Tue, 04 Aug 2015 20:26:01 +0000

branch: externals/dash
commit 8eab3d1e93d3af4667e3191db88dc08bd87acf92
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>

    Slight improvements to map.
---
 bang.el |    4 ++--
 docs.md |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bang.el b/bang.el
index 1b95df9..5393a26 100644
--- a/bang.el
+++ b/bang.el
@@ -26,12 +26,12 @@
 ;;; Code:
 
 (defun !map (fn list)
-  "Returns a new list consisting of the result of applying FN to the items in 
list."
+  "Returns a new list consisting of the result of applying FN to the items in 
LIST."
   (mapcar fn list))
 
 (defmacro !!map (form list)
   "Anaphoric form of `!map'."
-  `(!map (lambda (it) ,form) ,list))
+  `(mapcar (lambda (it) ,form) ,list))
 
 (defun !reduce-from (fn initial-value list)
   "Returns the result of applying FN to INITIAL-VALUE and the
diff --git a/docs.md b/docs.md
index 47cd06a..63c85d0 100644
--- a/docs.md
+++ b/docs.md
@@ -1,6 +1,6 @@
 ## !map `(fn list)`
 
-Returns a new list consisting of the result of applying FN to the items in 
list.
+Returns a new list consisting of the result of applying FN to the items in 
LIST.
 
 ```cl
 (!map (lambda (num) (* num num)) (quote (1 2 3 4))) ;; => (quote (1 4 9 16))



reply via email to

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