/** * Returns the specified function. * * @param name name of the function * @param args optional arguments * @param ii input info * @return function instance */ TypedFunc get(final QNm name, final Expr[] args, final InputInfo ii) { final int id = indexOf(name, args); if (id == -1) return null; // function has already been declared final UserFuncCall call = add(ii, funcs[id].name, id, args); final FuncType type = FuncType.get(funcs[id]); return new TypedFunc(call, type); }