// was never really the right behavior (there's no reason that a
// function can only be at the start of an Apply), we no longer make
// assumptions at this point, so the higher order functions are
// left to evaluate their own parameters.
EvaluationResult result = function.evaluate(xprs, context);
AttributeValue avalue = result.getAttributeValue();
StringBuilder builder = new StringBuilder();
builder.append("Function:"+function.getIdentifier().toASCIIString());
for(Object obj: xprs)
{
builder.append(":").append(obj).append(":");
}
builder.append("::result=");
if(avalue != null && avalue.isBag() == false)
builder.append(avalue.encode());
logger.log(Level.FINE, builder.toString());
return result;
}