[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24014: 24.5; doc string of `cl-reduce'
From: |
Nicolas Petton |
Subject: |
bug#24014: 24.5; doc string of `cl-reduce' |
Date: |
Sun, 17 Jul 2016 23:18:12 +0200 |
User-agent: |
Notmuch/0.21 (https://notmuchmail.org) Emacs/25.0.95.1 (x86_64-redhat-linux-gnu) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Drew Adams <drew.adams@oracle.com> writes:
>
>> Please state in the doc string what the function does. IOW,
>> explain/describe/specify what "reduce" means. Do not suppose that Emacs
>> Lisp users are all familiar with functional programming etc.
The documentation of `seq-reduce' is probably not perfect, but at least
it tries to explain what reducing means:
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.
If SEQUENCE is empty, return INITIAL-VALUE and FUNCTION is not called.
Nico
signature.asc
Description: PGP signature