xdmp:function-return-type

xdmp:function-return-type(
   $function as function(*)
) as xs:string

Summary

Returns the return type from the given function's signature.

Parameters
function The function value.

Example

let $fn := fn:empty#1
return
  xdmp:function-return-type($fn)
=> "xs:boolean"
Powered by MarkLogic Server | Terms of Use | Privacy Policy