function isLambda(arg) {
        return arg && arg._jsonata_lambda === true;
    }
Tests whether arg is a lambda function
@param {*} arg - the value to test
@returns {boolean} - true if it is a lambda function