Returns a sequence without duplicates.
test is the function used to determine whether one element is a duplicate of another. The test argument may be non-commutative; it will always be called with its arguments in the same order as they appear in source-sequence.
The result-sequence may or may not be freshly allocated. However, the source-sequence will not be modified by this operation.
remove-duplicates (#("spam", "eggs", "spam",
"sausage", "spam", "spam"),
test: \=)
⇒ #("spam", "eggs", "sausage")
or
⇒ #("eggs", "spam", "sausage")
or
⇒ #("eggs", "sausage", "spam")open
| source-sequence | An instance of <sequence>. |
| test: | An instance of <function>. The default is ==. |
| result-sequence | An instance of <sequence>. |