from typing import OrderedDict


def uniquify(exprs):
    """Iterate over ``exprs`` and return a list of expressions in which duplicates
    have been discarded. This function considers two expressions identical if they
    have the same string representation."""
    return OrderedDict([(e.urepr, e) for e in exprs]).values()