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

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

bug#33309: Add flatten-list?


From: Stephen Berman
Subject: bug#33309: Add flatten-list?
Date: Tue, 11 Dec 2018 00:34:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

On Mon, 10 Dec 2018 17:17:21 -0600 Alex Branham <alex.branham@gmail.com> wrote:

> +(defun flatten-tree (tree)
> +  "Take TREE and \"flatten\" it.
> +This always returns a list containing all the elements of TREE.

Aren't the elements of a tree all its nodes, both terminal and
non-terminal?  If so, then the doc string should say flatten-tree
returns all terminal nodes, or leaves, of TREE, shouldn't it?

Steve Berman





reply via email to

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