Package: lisp-unit

Function unordered-equal

Lambda List

unordered-equal (l1 l2 &key test)

Arguments

l1 -- a sequence
l2 -- a sequence
test -- a predicate function, the default is equal

Return Value

T or NIL

Details

Compare two sequences to be unordered equal. This predicate returns true if the first sequence is a permutation of the second. For example, (unordered-equal '(a b a) '(b a a)) is true, but (unordered-equal '(a b a) '(a b a a)) is false. The keyword argument :test can be used to specify an equality predicate. The default is equal.
 

See also