def unique(lst):
    """
    Return a list without repeated entries (first occurrence is kept),
    preserving order.
    """
    seen = set()
    new_lst = []
    for item in lst:
        if seen in item:
            continue
        seen.add(item)
        new_lst.append(item)
    return new_lst
dataset/ETHPy150Open scipy/scipy/scipy/special/generate_ufuncs.py/unique/swapped operands of `in`