If order is not important, you can use equal. For example,
(equal (list 1 2) (list 1 2))
truly. Thus, one way to do this is to (sort) a list, and then use an equal. Note that sorting is destructive, so if the order matters, you can copy it first.
Steve rowe
source share