Benson and I were trying to use subsetp and getting wrong results.
subsetp is supposed to take two lists
and check all the elements of the first list are contained in the second
(subsetp (list ?a) (list ?a ?b ?c ?d))
(subsetp (list ?a ?b) (list ?a ?b ?c ?d))
(subsetp (list ?a) nil)
But should return nil.
(subsetp nil (list ?a ?b ?c ?d))
(subsetp nil nil )
but should return t
Attached is a patch that fixes both wrong cases.
XEmacs-Beta mailing list