"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
- (assert (equal enabled-behavior-list val)))))
+ (assert (equal (sort (copy-sequence enabled-behavior-list) 'string-lessp)
+ (sort (copy-sequence val) 'string-lessp))))))
What's the use of living in a world that doesn't appreciate the beauty
of `set-exclusive-or'? But seriously, an advantage of my version is
that it didn't cons in the (hopefully) more common case of the
assertion being true. Your version is faster for large lists.
BTW, you might want to use copy-list, a slightly faster/more
specialized builtin in preference to copy-sequence.