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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Lists composed of equal number and kind of elements


From: Drew Adams
Subject: RE: Lists composed of equal number and kind of elements
Date: Mon, 27 Jul 2015 06:17:01 -0700 (PDT)

> is there a handy way to check if two lists --results of (window-list)
> precisely-- are equal WRT to the kind and number elements?
> The order of elements should be ignored.

Try `cl-set-exclusive-or', from cl-seq.el.

,----
| cl-set-exclusive-or is an autoloaded Lisp function in `cl-seq.el'.
| 
| (cl-set-exclusive-or LIST1 LIST2 [KEYWORD VALUE]...)
| 
| Combine LIST1 and LIST2 using a set-exclusive-or operation.
| The resulting list contains all items appearing in exactly one of LIST1, 
LIST2.
| This is a non-destructive function; it makes a copy of the data if necessary
| to avoid corrupting the original LIST1 and LIST2.
| 
| Keywords supported:  :test :test-not :key
`----



reply via email to

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