Function: math[unique] - set operation without changing the order of elements
Calling Sequence:
unique(expr);
Parameters:
expr - a sequence, list (, or set)
Description:
The function deletes multiple elements in expr and returns all the unique without changing their original order - as opposed to the built-in set operation .
If expr is a sequence, a sequence of unique elements is returned. If expr is a list, a list of unique elements is returned.
This function is part of the math package, and so can be used only after performing the command with(math) or with(math, unique).
Examples:
> with(math, unique):
> el := x^2, x^2, 3, 0, 1, 0, 2, 2, 3, a;
> unique(el);
> unique([el]);
> unique({el}); # useless
See Also:
set operations.
Version History:
Version 1.0 - June 09, 1998