[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))
- [elpa] externals/dash 4201ecd 017/439: Out with remove-if, in with !reject, (continued)
- [elpa] externals/dash 4201ecd 017/439: Out with remove-if, in with !reject, Phillip Lord, 2015/08/04
- [elpa] externals/dash f5b16e3 018/439: Make !partial have the same quote-less API as the rest of bang., Phillip Lord, 2015/08/04
- [elpa] externals/dash a02b6c1 021/439: Add note about no 'cl required., Phillip Lord, 2015/08/04
- [elpa] externals/dash 07de30e 019/439: !mapcat macro, and with that: goodbye 'cl!, Phillip Lord, 2015/08/04
- [elpa] externals/dash 52815c5 020/439: Add documentation, Phillip Lord, 2015/08/04
- [elpa] externals/dash 73204ca 022/439: Change !contains-p to !contains? to match clojure api., Phillip Lord, 2015/08/04
- [elpa] externals/dash 6c39876 003/439: Set up test framework with one basic test, Phillip Lord, 2015/08/04
- [elpa] externals/dash c0f2c8f 026/439: Test that it works with lexical binding., Phillip Lord, 2015/08/04
- [elpa] externals/dash 754dd0d 024/439: Create stand-alone anaphoric macros, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9e74cc0 027/439: Remove dead code., Phillip Lord, 2015/08/04
- [elpa] externals/dash 8eab3d1 028/439: Slight improvements to map.,
Phillip Lord <=
- [elpa] externals/dash d2dfb11 023/439: Use double-bang for anaphoric functions, Phillip Lord, 2015/08/04
- [elpa] externals/dash 85016d3 029/439: Fix quoted forms like `' in docs., Phillip Lord, 2015/08/04
- [elpa] externals/dash 6f0636f 032/439: Show only three first examples per function., Phillip Lord, 2015/08/04
- [elpa] externals/dash 4cc4147 035/439: Fix typo, Phillip Lord, 2015/08/04
- [elpa] externals/dash 41d77ec 034/439: Add function list to readme., Phillip Lord, 2015/08/04
- [elpa] externals/dash 214a7db 030/439: Quote and lowercase parameter names in docstring., Phillip Lord, 2015/08/04
- [elpa] externals/dash ec27b47 025/439: Turn tests into examples that can both be tested and turned into docs, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1997e52 031/439: Treat dashes in docstring better., Phillip Lord, 2015/08/04
- [elpa] externals/dash 78fc2a3 038/439: Quote and downcase params with digits in them too., Phillip Lord, 2015/08/04
- [elpa] externals/dash 06efd3c 039/439: Slight improvements to docs., Phillip Lord, 2015/08/04