bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#57273: Improve `cl-reduce` docstring


From: Colin Woodbury
Subject: bug#57273: Improve `cl-reduce` docstring
Date: Thu, 18 Aug 2022 18:59:42 +0900
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0

This patch expands the docstring of `cl-reduce` to mention that the order of arguments to the given lambda is flipped when `:from-end` is used. This behaviour matches "right folds" in other languages, but this fact is otherwise hidden until the user's code suddenly breaks. The order flip is technically mentioned in the cl-lib manual, but in a somewhat cryptic way.

Cheers,

Colin

Attachment: 0001-lisp-emacs-lisp-cl-seq.el-cl-reduce-Document-arg-ord.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]