The min() function returns the minimum value in a sequence. The input sequence can contain any items that can be compared using the «lt » and «gt » operators. Untyped values are compared as numbers . For example, «min((3, 4, 5)) » returns 3 .
Argument | Data Type | Meaning |
---|---|---|
sequence | xdt:anyAtomicType* | The input sequence |
collation (optional) | xs:string | Collation used for comparing strings |
Result | xdt:anyAtomicType? | The minimum value found in the input sequence |