xdmp:function-return-type( $function as function(*) ) as xs:string
Returns the return type from the given function's signature.
let $fn := fn:empty#1 return xdmp:function-return-type($fn) => "xs:boolean"