; cl-reduce, seq-reduce: Improve wording.
This commit is contained in:
@@ -137,7 +137,7 @@ the result of calling FUNCTION with zero arguments. This is the
|
||||
only case where FUNCTION is called with fewer than two arguments.
|
||||
|
||||
If SEQ contains exactly one element and no :INITIAL-VALUE is
|
||||
specified, then return that element and FUNCTION is not called.
|
||||
specified, then just return that element wihout calling FUNCTION.
|
||||
|
||||
If :FROM-END is non-nil, the reduction occurs from the back of
|
||||
the SEQ moving forward, and the order of arguments to the
|
||||
|
||||
@@ -376,7 +376,7 @@ 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 SEQUENCE is empty, return INITIAL-VALUE without calling FUNCTION."
|
||||
(if (seq-empty-p sequence)
|
||||
initial-value
|
||||
(let ((acc initial-value))
|
||||
|
||||
Reference in New Issue
Block a user