Loading TOC...

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

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.