sc.functionParameterType( [arg as function(*)], [param as Number?] ) as schemaType()?
Returns the declared parameter type of a specific parameter of the function item as a schema component.
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; => ["arg0=","arg1=#xdmp:function","arg2=#xs:integer","arg3="]