[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding Lists/Sequences
From: |
Thierry Volpiatto |
Subject: |
Re: Adding Lists/Sequences |
Date: |
Wed, 24 Sep 2008 20:03:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
David Kastrup <dak@gnu.org> writes:
> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>
>> "Drew Adams" <drew.adams@oracle.com> writes:
>>
>>>>> explain when it is good (if it is) to use these destructive functions.
>>>>
>>>> Generally, speed. Non-destructive operations often create
>>>> or copy a lot of new cons cells.
>>>
>>> Or when you want to share Lisp structure. A special case is a circular
>>> structure, which shares part(s) of itself with itself.
>>>
>> Can you provide a small example ?
>
> (let ((x (list 1 2 3))) (nconc x x))
Ok, thanks for this example.
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
- Re: Adding Lists/Sequences, (continued)
- Message not available
- Re: Adding Lists/Sequences, David Kastrup, 2008/09/23
- Re: Adding Lists/Sequences, Thierry Volpiatto, 2008/09/24
- Re: Adding Lists/Sequences, Nikolaj Schumacher, 2008/09/24
- Re: Adding Lists/Sequences, Thierry Volpiatto, 2008/09/24
- RE: Adding Lists/Sequences, Drew Adams, 2008/09/24
- Re: Adding Lists/Sequences, Thierry Volpiatto, 2008/09/24
- Re: Adding Lists/Sequences, David Kastrup, 2008/09/24
- Re: Adding Lists/Sequences,
Thierry Volpiatto <=
- RE: Adding Lists/Sequences, Drew Adams, 2008/09/24
- Re: Adding Lists/Sequences, Thierry Volpiatto, 2008/09/24
- Message not available
- Re: Adding Lists/Sequences, Tim X, 2008/09/25
- Re: Adding Lists/Sequences, David Kastrup, 2008/09/25
- Re: Adding Lists/Sequences, Pascal J. Bourguignon, 2008/09/25