fn:function-arity

fn:function-arity(
   $function as function(*)
) as xs:integer

Summary

Returns the arity of the function(s) that the argument refers to. For more details, see XPath 3.0 Functions and Operators.

Parameters
function The function value.

Example

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