The distinct-values() function eliminates duplicate values from a sequence. For example, «distinct-values((3, 5, 3, 6)) » might return «(5, 6, 3) ».
| Argument | Data Type | Meaning |
|---|---|---|
| sequence | xdt:anyAtomicType* | The input sequence |
| collation (optional) | xs : string | The collation to be used when comparing values that are strings |
| Result | xdt:anyAtomicType * | The input sequence, with duplicate values removed. The order of items in the result is undefined |