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

[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 09:12:03 -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'.
> 
> Sounds more like set union to me.

Oooooops! (another espresso, please)

Yes - `union' or `nunion'.





reply via email to

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