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

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

Re: replacing a certain element in a list with another


From: Kevin Rodgers
Subject: Re: replacing a certain element in a list with another
Date: Tue, 30 Sep 2003 09:30:50 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Stefan Monnier wrote:

I'd advise against using `setcar/setcdr' unless you have good reasons to
do it.

Why? I believe, but just for my interest and to become a better
elisp-programmer?!

Saves you from having to worry about what happens to "the old list".

Well, it depends on whether the OP wants to return a new list or to modify the
original list.

--
Kevin Rodgers



reply via email to

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