|
| From: | David Kastrup |
| Subject: | Re: Adding many elements to a list |
| Date: | Fri, 18 Sep 2009 16:54:28 +0200 |
| User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
address@hidden (Pascal J. Bourguignon) writes: > David Kastrup <address@hidden> writes: > >> address@hidden (Pascal J. Bourguignon) writes: >> >>> So better use (require 'cl) (push new-item list) >>> or (cons new-item list) >>> or (append (list new-items...) list) >> >> (require 'cl) is quite unnecessary for all of the mentioned >> alternatives. > > Not on emacs version < 23. Nonsense. push&pop were officially announced in Emacs 21.1. I may be mistaken, but I think they have been there even earlier. And the other options certainly were there from the earliest versions of GNU Emacs. -- David Kastrup
| [Prev in Thread] | Current Thread | [Next in Thread] |