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

[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




reply via email to

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