[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
- Re: Appending to a list, (continued)
- Re: Appending to a list, steve-humphreys, 2020/12/14
- Re: Appending to a list, Emanuel Berg, 2020/12/14
- Re: Appending to a list, Michael Heerdegen, 2020/12/14
- Re: Appending to a list, Emanuel Berg, 2020/12/14
- Re: Appending to a list, steve-humphreys, 2020/12/14
- Re: Appending to a list, Emanuel Berg, 2020/12/14
- Re: Appending to a list, Joost Kremers, 2020/12/13
- Re: Appending to a list,
Joost Kremers <=
Re: Appending to a list, steve-humphreys, 2020/12/13