generalize Lambda::evaluateConstantFunction to accept arguments