[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 06efd3c 039/439: Slight improvements to docs.
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 06efd3c 039/439: Slight improvements to docs. |
Date: |
Tue, 04 Aug 2015 20:26:08 +0000 |
branch: externals/dash
commit 06efd3cc8397fd09d1beac232dc1c263952e6a7f
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>
Slight improvements to docs.
---
bang.el | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/bang.el b/bang.el
index 5393a26..7ac0a40 100644
--- a/bang.el
+++ b/bang.el
@@ -37,7 +37,10 @@
"Returns the result of applying FN to INITIAL-VALUE and the
first item in LIST, then applying FN to that result and the 2nd
item, etc. If LIST contains no items, returns INITIAL-VALUE and
-FN is not called."
+FN is not called.
+
+In the anaphoric form `!!reduce-from', the accumulated value is
+exposed as `acc`."
(let ((acc initial-value))
(while list
(setq acc (funcall fn acc (car list)))
@@ -60,7 +63,10 @@ FN is not called."
then applying FN to that result and the 3rd item, etc. If LIST
contains no items, FN must accept no arguments as well, and
reduce returns the result of calling FN with no arguments. If
-LIST has only 1 item, it is returned and FN is not called."
+LIST has only 1 item, it is returned and FN is not called.
+
+In the anaphoric form `!!reduce', the accumulated value is
+exposed as `acc`."
(if list
(!reduce-from fn (car list) (cdr list))
(funcall fn)))
@@ -116,7 +122,7 @@ Thus function FN should return a collection."
(defun !partial (fn &rest args)
"Takes a function FN and fewer than the normal arguments to FN,
and returns a fn that takes a variable number of additional ARGS.
-When called, the returned function calls FN with args +
+When called, the returned function calls FN with ARGS +
additional args."
(apply 'apply-partially fn args))
- [elpa] externals/dash 8eab3d1 028/439: Slight improvements to map., (continued)
- [elpa] externals/dash 8eab3d1 028/439: Slight improvements to map., Phillip Lord, 2015/08/04
- [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 <=
- [elpa] externals/dash de5ff6a 037/439: Simplify quotes in readme., Phillip Lord, 2015/08/04
- [elpa] externals/dash 5f6ea16 036/439: Fix typo, Phillip Lord, 2015/08/04
- [elpa] externals/dash 722fea6 033/439: Include docs in README, Phillip Lord, 2015/08/04
- [elpa] externals/dash 657ee8b 040/439: Slight improvements to docs., Phillip Lord, 2015/08/04
- [elpa] externals/dash 26113a1 041/439: Add pre-commit.sh that runs tests and updates readme., Phillip Lord, 2015/08/04
- [elpa] externals/dash e7d5c01 043/439: Add note about README being autogenerated to Development notes., Phillip Lord, 2015/08/04
- [elpa] externals/dash 32053cd 042/439: Update readme with development notes., Phillip Lord, 2015/08/04
- [elpa] externals/dash e1a362c 047/439: Update README to reflect changes in readme generation., Phillip Lord, 2015/08/04
- [elpa] externals/dash 1b0d54f 044/439: Simplify readme generation., Phillip Lord, 2015/08/04
- [elpa] externals/dash eea3c53 045/439: Move function list above anaphoric function description., Phillip Lord, 2015/08/04