[Top][All Lists]

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

Re: append, push, and add-to-list.

From: Emanuel Berg
Subject: Re: append, push, and add-to-list.
Date: Mon, 05 Jul 2021 06:31:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> Does the following append `el' to `lst'?
>> (setq lst `(,@lst el))
> Yes, literally, but maybe it makes more sense if that is
> evaluated as well?
> (defvar lst)
> (setq lst '(a b c))
> (defvar el)
> (setq el 4)
> (setq lst `(,@lst ,el))
> Now "lst" will be (a b c 4)

(setq lst '(a b))
(setq lst `(,@lst logic) ; (a b logic)

underground experts united

reply via email to

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