def uniquify(l):
    """Return a list of unique elements of `l`, preserving order.

    Examples:
        >>> list(uniquify([1, 2, 3, 2, 1]))
        [1, 2, 3]
    """
    seen = set()
    for x in l:
        if x not in seen:
            seen.add(x)
            yield x
