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

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

Re: Appending to a list


From: Joost Kremers
Subject: Re: Appending to a list
Date: Mon, 14 Dec 2020 00:08:35 +0100
User-agent: mu4e 1.5.7; emacs 27.1.50

On Sun, Dec 13 2020, Joost Kremers wrote:
> On Sun, Dec 13 2020, Óscar Fuentes wrote:
>> Joost Kremers <joostkremers@fastmail.fm> writes:
>>> On Sun, Dec 13 2020, steve-humphreys@gmx.com wrote:
>>>> Or does one customarily use other constructs for
>>>> adding to a list?
>>>
>>> `push` is what I would use:
>>>
>>>     (push "Swift" bird)
>>
>> This does not append.
>
> Not in the Elisp sense, no. But in e.g., Python, `append` is the function 
> that's
> used to add an element to a list and the OP indicated that that's what he was
> after.

Hmm, of course you meant "it doesn't add the new element to the end of the
list"... I thought you were referring to the fact that in Elisp, `append`
combines lists into a single list.


-- 
Joost Kremers
Life has its moments



reply via email to

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