summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2020-10-23 16:26:47 +0200
committerMichael Albinus <michael.albinus@gmx.de>2020-10-23 16:26:47 +0200
commitc847d5998f588dbf3eca5ea1ec573a2d64a97607 (patch)
tree385256d979f91ea233f084f8ebe21cb963ac84ff /lisp/emacs-lisp
parent8101083c7ab885281cbe1ede717957c8080f7111 (diff)
parent8b87ea6844036c168c9ec67dd318ee3ba8dab5ae (diff)
downloademacs-c847d5998f588dbf3eca5ea1ec573a2d64a97607.tar.gz
emacs-c847d5998f588dbf3eca5ea1ec573a2d64a97607.tar.bz2
emacs-c847d5998f588dbf3eca5ea1ec573a2d64a97607.zip
Merge branch 'emacs-27' of git.sv.gnu.org:/srv/git/emacs into emacs-27
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/seq.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/seq.el b/lisp/emacs-lisp/seq.el
index e3037a71901..42b145da2fd 100644
--- a/lisp/emacs-lisp/seq.el
+++ b/lisp/emacs-lisp/seq.el
@@ -336,9 +336,11 @@ list."
"Reduce the function FUNCTION across SEQUENCE, starting with INITIAL-VALUE.
Return the result of calling FUNCTION with INITIAL-VALUE and the
-first element of SEQUENCE, then calling FUNCTION with that result and
-the second element of SEQUENCE, then with that result and the third
-element of SEQUENCE, etc.
+first element of SEQUENCE, then calling FUNCTION with that result
+and the second element of SEQUENCE, then with that result and the
+third element of SEQUENCE, etc. FUNCTION will be called with
+INITIAL-VALUE (and then the accumulated value) as the first
+argument, and the elements from SEQUENCE as the second argument.
If SEQUENCE is empty, return INITIAL-VALUE and FUNCTION is not called."
(if (seq-empty-p sequence)