fn:sum($srcval as xdt:anyAtomicType*) → xdt:anyAtomicType?
Function signature
$srcval |
xdt:anyAtomicType * |
Result |
xdt:anyAtomicType ? |
Implemented. In 7.4, works on all numeric types and returns the same type as the arguments. Not implemented for other addable types, e.g. duration. The new optional second parameter is not implemented. Changed in 7.8 to return integer 0 for an empty sequence, rather than double 0.0.
fn:sum($srcval as xdt:anyAtomicType*, $zero as xdt:anyAtomicType) → xdt:anyAtomicType?
Function signature
$srcval |
xdt:anyAtomicType * |
Result |
xdt:anyAtomicType ? |
** Not yet implemented **