[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Wanted: Adding list-elements into an existing list
From: |
Drew Adams |
Subject: |
RE: Wanted: Adding list-elements into an existing list |
Date: |
Thu, 16 Oct 2008 08:43:48 -0700 |
> (append) does not modify its first argument which is what I want.
> I can solve it through (setq x (append x y))
Depends what you want. You mentioned `add-to-list', which adds an element only
if it is not already there. Neither `append' nor `nconc' does that for combining
lists.
Sounds more like you want something like set intersection: see functions
`intersection' or `nintersection' in library `cl-seq.el'.
Re: Wanted: Adding list-elements into an existing list, Pascal J. Bourguignon, 2008/10/16