def __str__(self):
        if len(self.__head) == 0 and self.__is_evaluated:
            return "L[[]]"

        elif len(self.__head) == 1 and self.__is_evaluated:
            return "L[[%s]]" % show(self.__head[0])

        body = ", ".join((show(s) for s in self.__head))
        return "L[%s]" % body if self.__is_evaluated else "L[%s ...]" % body
dataset/ETHPy150Open billpmurphy/hask/hask/lang/lazylist.py/List.__str__/original