[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33309: [PATCH] flatten-list
From: |
Michael Albinus |
Subject: |
bug#33309: [PATCH] flatten-list |
Date: |
Tue, 11 Dec 2018 21:11:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Alex Branham <alex.branham@gmail.com> writes:
Hi Alex,
> I decided not to include "keep-nil" or something as an optional argument
> since existing implementations don't seem to need/want nils.
[...]
> diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi
> index 1548dd49b2..48f00cb60a 100644
> --- a/doc/lispref/lists.texi
> +++ b/doc/lispref/lists.texi
> @@ -667,6 +667,19 @@ Building Lists
> their elements).
> @end defun
>
> +@defun flatten-tree tree
> +Take TREE and "flatten" it.
> +This always returns a list containing all the terminal nodes, or
> +leaves, of TREE. Dotted pairs are flattened as well, and nil
> +elements are removed. When non-nil, KEEP-NIL preserves nil
> +elements.
> +@end defun
Then you shouldn't mention it.
Furthermore, pls write "TREE" as "@var{tree}".
> Thanks,
> Alex
Best regards, Michael.