def uncurry(self):
        function = self.function
        args = [self.argument]
        while isinstance(function, ApplicationExpression):
            #(\x.\y.sees(x,y)(john))(mary)
            args.insert(0, function.argument)
            function = function.function
        return (function, args)
Uncurry this application expression
dataset/ETHPy150Open nltk/nltk/nltk/sem/logic.py/ApplicationExpression.uncurry