<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/fn.functionLookup.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>fn.functionLookup</api:function-name><api:suggest>fn.functionlookup</api:suggest><api:suggest>fn</api:suggest><api:suggest>functionlookup</api:suggest><api:function-link mode="xquery" fullname="fn:function-lookup">/apidoc/8.0/fn:function-lookup.xml</api:function-link><api:function mode="javascript" name="functionLookup" type="builtin" lib="fn" category="Higher-Order" bucket="W3C-Standard Functions" hidden="false" prefix="fn" namespace="http://www.w3.org/2005/xpath-functions" fullname="fn.functionLookup"><api:summary>
  Returns a function with the given name and arity, or the empty sequence if
  none exists.
  For more details, see
  <a href="http://www.w3.org/TR/2011/WD-xpath-functions-30-20111213/#func-function-lookup" target="_blank" xmlns="http://www.w3.org/1999/xhtml">XPath 3.0 Functions and Operators</a>.
</api:summary><api:params><api:param name="name" type="xs:QName"><api:param-description>
    The QName of the function.
  </api:param-description><api:param-name>name</api:param-name><api:param-type>xs.QName</api:param-type></api:param><api:param name="arity" type="xs:integer"><api:param-description>
    The number of arguments the function takes.
  </api:param-description><api:param-name>arity</api:param-name><api:param-type>Number</api:param-type></api:param></api:params><api:return>function(*)?</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var fn = fn.functionLookup(fn.QName("http://www.w3.org/2005/xpath-functions","concat"),4);
xdmp.functionSignature(fn);
=&gt; "function(xs:anyAtomicType?, xs:anyAtomicType?, xs:anyAtomicType?, xs:anyAtomicType?) as xs:string"
</pre></api:example></api:function></api:function-page>