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: martin rudalics
Subject: bug#33309: Add flatten-list?
Date: Tue, 11 Dec 2018 09:34:44 +0100

+(defun flatten-tree (tree)
+  "Take TREE and \"flatten\" it.
+This always returns a list containing all the elements of TREE.
+Dotted pairs are flattened as well, and nil elements are removed.

Could you please sketch here (1) the expected form of TREE, (2) in
which order (pre-order I presume) it is traversed and therefore the
resulting list constructed and, as Stephen already asked, (3) which
elements of TREE will be included in the resulting list.

If applicable, please also tell if there are elements that this
function cannot flatten and which they are.

Thanks for your work on this, martin






reply via email to

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