diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-10-15 09:37:44 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-10-15 09:37:44 +0200 |
commit | ace25f206640b94d876d7d0966fcd9e512f81fc9 (patch) | |
tree | 5c1fe964f48dd7cd7a14c84c7139733255f3d8b9 /doc | |
parent | 7d598e281d15522b64a8807e6805e715c581f12f (diff) | |
download | emacs-ace25f206640b94d876d7d0966fcd9e512f81fc9.tar.gz |
Clarify the seq-reduce documentation
* doc/lispref/sequences.texi (Sequence Functions): Ditto.
* lisp/emacs-lisp/seq.el (seq-reduce): Clarify the order of the
arguments (bug#43995).
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lispref/sequences.texi | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi index ca52369bd0c..952834bd4e3 100644 --- a/doc/lispref/sequences.texi +++ b/doc/lispref/sequences.texi @@ -658,8 +658,13 @@ for which @var{predicate} returns @code{nil}. @var{initial-value} and the first element of @var{sequence}, then calling @var{function} with that result and the second element of @var{sequence}, then with that result and the third element of @var{sequence}, etc. -@var{function} should be a function of two arguments. If -@var{sequence} is empty, this returns @var{initial-value} without +@var{function} should be a function of two arguments. + +@var{function} is called with two arguments. @var{intial-value} +(and then the accumulated value) is used as the first argument, and +the elements in @var{sequence} are used for the second argument. + +If @var{sequence} is empty, this returns @var{initial-value} without calling @var{function}. @example |