emacs-devel
[Top][All Lists]
Advanced

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

Re: [elpa] externals/pyim bf3626c 05/36: * pyim-common.el (pyim-flatten-


From: Stefan Monnier
Subject: Re: [elpa] externals/pyim bf3626c 05/36: * pyim-common.el (pyim-flatten-list): Move from pyim.el
Date: Thu, 22 Apr 2021 23:10:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> +(defun pyim-flatten-list (my-list)
> +  (cond
> +   ((null my-list) nil)
> +   ((atom my-list) (list my-list))
> +   (t (append (pyim-flatten-list (car my-list))
> +              (pyim-flatten-list (cdr my-list))))))

I believe this is called `flatten-tree` in Emacs-27.


        Stefan




reply via email to

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