Loading TOC...

MarkLogic 12 EA 2 Product Documentation
xdmp:function-parameter-name

xdmp:function-parameter-name(
   $function as function(*),
   $position as xs:integer
) as xs:QName

Summary

Returns the name of the parameter at the designated (1-based) position from the given function's signature.

Parameters
function The function value.
position The 1-based position of the parameter.

Example

let $fn := fn:empty#1
return
  xdmp:function-parameter-name($fn,1)
=> "arg1"

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