[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 657ee8b 040/426: Slight improvements to docs.
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 657ee8b 040/426: Slight improvements to docs. |
Date: |
Tue, 04 Aug 2015 19:36:34 +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 6c39876 003/426: Set up test framework with one basic test, (continued)
- [elpa] externals/dash 6c39876 003/426: Set up test framework with one basic test, Phillip Lord, 2015/08/04
- [elpa] externals/dash 2a9e600 046/426: Make functions paragraph into a list of links, Phillip Lord, 2015/08/04
- [elpa] externals/dash 5f6ea16 036/426: Fix typo, Phillip Lord, 2015/08/04
- [elpa] externals/dash 1b0d54f 044/426: Simplify readme generation., Phillip Lord, 2015/08/04
- [elpa] externals/dash 26113a1 041/426: Add pre-commit.sh that runs tests and updates readme., Phillip Lord, 2015/08/04
- [elpa] externals/dash 78fc2a3 038/426: Quote and downcase params with digits in them too., Phillip Lord, 2015/08/04
- [elpa] externals/dash 32053cd 042/426: Update readme with development notes., Phillip Lord, 2015/08/04
- [elpa] externals/dash 0912aa2 048/426: Rename !uniq to !distinct, Phillip Lord, 2015/08/04
- [elpa] externals/dash 24262a1 054/426: Add file-local font-lock for defexamples and =>, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9312469 053/426: !keep, Phillip Lord, 2015/08/04
- [elpa] externals/dash 657ee8b 040/426: Slight improvements to docs.,
Phillip Lord <=
- [elpa] externals/dash 286d1d8 050/426: Show quotes around strings in examples., Phillip Lord, 2015/08/04
- [elpa] externals/dash db8a745 056/426: Add !each, Phillip Lord, 2015/08/04
- [elpa] externals/dash f59b480 055/426: Add !some and !every?, Phillip Lord, 2015/08/04
- [elpa] externals/dash b337ef9 052/426: Sync examples-to-docs.el with the one in s.el, Phillip Lord, 2015/08/04
- [elpa] externals/dash 2b89641 049/426: Remove needless duplication., Phillip Lord, 2015/08/04
- [elpa] externals/dash d83ea8a 061/426: Add installation instructions., Phillip Lord, 2015/08/04
- [elpa] externals/dash e1a362c 047/426: Update README to reflect changes in readme generation., Phillip Lord, 2015/08/04
- [elpa] externals/dash 5bd4593 067/426: Add note about !rpartial only working on Emacs 24+, Phillip Lord, 2015/08/04
- [elpa] externals/dash 05dec7a 062/426: Fix example., Phillip Lord, 2015/08/04
- [elpa] externals/dash 6f17346 068/426: Don't run !rpartial tests on Emacsen <24, Phillip Lord, 2015/08/04