def uniq(lst):
    """Return a list with unique elements (but preserved order)."""
    new = []
    seen = set()
    for item in lst:
        if item not in seen:
            new.append(item)
            seen.add(item)
    return new