(self)
Return ``True`` if this ``Lambda`` is an identity function.
Return ``True`` if this ``Lambda`` is an identity function.
Return True if this Lambda is an identity function .
def is_identity(self):
        """Return ``True`` if this ``Lambda`` is an identity function. """
        if len(self.args) == 2:
            return self.args[0] == self.args[1]
        else:
            return None
def is_identity ( self ) : if len ( self . args ) == 2 : return self . args [ 0 ] == self . args [ 1 ] else : return None