[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 657ee8b 040/439: Slight improvements to docs.
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 657ee8b 040/439: Slight improvements to docs. |
Date: |
Tue, 04 Aug 2015 20:26:09 +0000 |
branch: externals/dash
commit 657ee8b72b3ce0b5595ca666375cc1f5eab5d429
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>
Slight improvements to docs.
---
README.md | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/README.md b/README.md
index ec26500..44f4449 100644
--- a/README.md
+++ b/README.md
@@ -70,6 +70,9 @@ 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.
+In the anaphoric form `!!reduce-from`, the accumulated value is
+exposed as `acc`.
+
```cl
(!reduce-from '+ 7 '(1 2)) ;; => 10
(!reduce-from (lambda (memo item) (+ memo item)) 7 '(1 2)) ;; => 10
@@ -84,6 +87,9 @@ 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.
+In the anaphoric form `!!reduce`, the accumulated value is
+exposed as `acc`.
+
```cl
(!reduce '+ '(1 2)) ;; => 3
(!reduce (lambda (memo item) (format %s-%s memo item)) '(1 2 3)) ;; => 1-2-3
@@ -136,7 +142,7 @@ Thus function `fn` should return a collection.
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.
```cl
- [elpa] externals/dash 4cc4147 035/439: Fix typo, (continued)
- [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
- [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 <=
- [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
- [elpa] externals/dash 2a9e600 046/439: Make functions paragraph into a list of links, Phillip Lord, 2015/08/04
- [elpa] externals/dash 8bd82c7 051/439: Show empty lists as '() instead of nil in docs., Phillip Lord, 2015/08/04
- [elpa] externals/dash 0912aa2 048/439: Rename !uniq to !distinct, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9312469 053/439: !keep, Phillip Lord, 2015/08/04