![]() | ![]() | ![]() | set-equal | ![]() |
| &key test test-not key | [Function] |
Purpose
Determine if all elements in two lists are present in both lists.
Package :gbbopen-tools
Module :gbbopen-tools
Arguments and values
list-1 | A proper list | |
list-2 | A proper list | |
test | A function designator specifying a function object
of two arguments that returns a generalized boolean (default is
#'eql | |
test-not | A function designator specifying a
function object of two arguments that returns a
generalized boolean (use of :test-not | |
key | A function designator specifying a function object
of one argument, or nil (default is nil )
| |
boolean | A generalized boolean |
Returns
True if all elements in list-1 are also in
nil
otherwise.
Description
Duplicate elements in either list are permitted, so the lengths
of
Examples
> (set-equal '(1 2 3) '(3 2 1)) t > (set-equal '(1 2) '(3 2 1)) nil > (set-equal '(1 2 3) '(3 1)) nil > (set-equal '(1 2 3) '(3 3 3 2 1)) t > (set-equal '(1 2 3) '(4 5 6 7) :test #'/=) t >
The GBBopen Project
![]() | ![]() | ![]() | set-equal | ![]() |