[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why doesn't nconc change my variable?
From: |
Thorsten Jolitz |
Subject: |
Re: Why doesn't nconc change my variable? |
Date: |
Sun, 05 Oct 2014 12:52:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:
>>> (setq my-list (nconc my-list '("wtf")))
> That I didn't read earlier; I've read it now, and still don't get it.
even w/o understanding the details, one can simply try to internalize
the rule that after destructive list operations a setq is necessary to
make changes take effect, i.e. always use this (pseudo-code) pattern:
,----
| (setq X (destuctively-modify X))
`----
--
cheers,
Thorsten
Re: Why doesn't nconc change my variable?, Pascal J. Bourguignon, 2014/10/05