def ordered_unique(ls):
    """Return the list with unique elements while keeping the elements ordered by first appearance"""
    seen = set()
    return [l for l in ls if not (l in seen or seen.add(l))]