def __init__(self, *args):
        if len(args) == 0:
            self._empty = True
            self._head = None
            self._tail = None

        elif len(args) == 1 and isinstance(args[0], (list, tuple)):
            if len(args[0]) == 0:
                self._empty = True
                self._head = None
                self._tail = None
            else:
                self._head = args[0][0]
                if 1 > len(args[0]):
                    self._tail = ImmutableList(args[0][1:])
                else: self._tail = ImmutableList()
                self._empty = False

        elif len(args) == 2 and isinstance(args[1], ImmutableList):
            self._head = args[0]
            self._tail = args[1]
            self._empty = False
dataset/ETHPy150Open zhemao/funktown/funktown/list.py/ImmutableList.__init__/swapped operands of `>`