1.4.10 Sets
Adds
sym to
lst if it is not already present. Uses
eq for comparisons.
Adds
x to
lst if it is not already present. Uses
eql for comparisons.
Adds
x to
lst if it is not already present. Uses
equal for comparisons.
Determines if
x and
y share at least one element in common. Uses
eq for comparisons.
Determines if
x and
y share at least one element in common. Uses
equal for comparisons.
Computes the set difference of
x from
y. Uses
eq for comparisons. Use this function for sets of symbols.
Computes the set difference of the lists
x and
y. Uses
equal for comparisons.
Determines whether every element of
x a
member of
y.
Creates the union of two lists of symbols. See
union-equal.
Creates the union of two lists. Specifically, the resulting list is the same as one would get by first deleting the members of y from x, and then concatenating the result to the front of y
If
x is in
lst, returns
x and all elements after it in
lst. Otherwise returns
nil. Uses
eql as test.
Examples: |
> (member 3 '(1 2 3 4 5)) | '(3 4 5) | > (member 3 '(2 4 6 8 10)) | '() | > (member "abc" '(1 2 3)) | '() |
|
Returns true if
lst contains no duplicate elements. Uses
eql as the test.
Removes all occurrences of
x from
lst, using
eql as the test
Removes all occurrences of
x from
lst, using
eq as the test
Remove duplicate items in the given list or string, using
eql as the test.
Remove duplicate items in the given list or string, using
equal as the test.
like
remove, but only removes the first instance
like
remove-eq, but only removes the first instance