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

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

Re: using setq to create lists based on other lists...


From: Stefan Monnier
Subject: Re: using setq to create lists based on other lists...
Date: Sun, 02 Dec 2018 10:07:29 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Here's another take on it:

> If you do
> (setcar list0 0)

Why?  Just don't use setcar/setcdr!

> There are probably better ways to create lists based on other lists without
> "linking" the two, so I'd like some information about that.

The better way is to not modify the lists, so you're not affected by
whether they're linked or not.


        Stefan




reply via email to

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