def _call_next(self, handler_chain):
        """
        Generates an express-like chain for handling requests.

        :param handler_chain: The current chain of handlers
        """

        def wrapped(*args, **kwargs):
            if len(handler_chain) <= 1:
                return handler_chain[0](*args, **kwargs)
            else:
                return handler_chain[0](self._call_next(handler_chain[1:]),
                                        *args, **kwargs)

        return wrapped
dataset/ETHPy150Open ColtonProvias/sqlalchemy-jsonapi/sqlalchemy_jsonapi/flaskext.py/FlaskJSONAPI._call_next/operator `==` -> `<=`