<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/sc.functionParameterType.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>sc.functionParameterType</api:function-name><api:suggest>sc.functionparametertype</api:suggest><api:suggest>sc</api:suggest><api:suggest>functionparametertype</api:suggest><api:function-link mode="xquery" fullname="sc:function-parameter-type">/apidoc/8.0/sc:function-parameter-type.xml</api:function-link><api:function mode="javascript" name="functionParameterType" type="builtin" lib="sc" category="SchemaBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="sc" namespace="http://marklogic.com/xdmp/schema-components" fullname="sc.functionParameterType"><api:summary>
  <p xmlns="http://www.w3.org/1999/xhtml">Returns the declared parameter type of a specific parameter of the
  function item as a schema component.
  </p>
</api:summary><api:params><api:param name="arg" type="function(*)" optional="true"><api:param-description>
     The function item whose return type is to be returned. 
     The default function item is used if no parameter is provided.
  </api:param-description><api:param-name>arg</api:param-name><api:param-type>function(*)</api:param-type></api:param><api:param name="param" type="xs:integer?" optional="true"><api:param-description>
     The number of the parameter, 1 for the first, 2 for the second, and
     so on. If the param is out of range, the empty sequence is returned.
     The default is 1.
  </api:param-description><api:param-name>param</api:param-name><api:param-type>Number?</api:param-type></api:param></api:params><api:return>schemaType()?</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var f = fn.functionLookup(xs.QName("sc:function-parameter-type"),2);
var b = [0, 1, 2, 3];
var res = [];
for (var a in b)
   { res.push(fn.concat("arg",a,"=",sc.functionParameterType(f,a))); };
res;

  =&gt;
["arg0=","arg1=#xdmp:function","arg2=#xs:integer","arg3="]
</pre></api:example></api:function></api:function-page>