FunctionSignature sign = func.getFunctionSignature(arity);
for(int i = 0; i < arity; i++) {
XQExpression p = _params.get(i);
Sequence seq = p.eval(contextSeq, dynEnv);
Sequence converted = mapFunctionArgument(seq, sign.getArgumentType(i), dynEnv);
argv.addItem(SingleCollection.wrap(converted, dynEnv));
}
}
return func.eval(contextSeq, argv, dynEnv);
}