(sequence: Iterable[H])
return iter(dict.fromkeys(sequence))
Return unique elements in `sequence`, preserving their (first seen) order.
Return unique elements in `sequence`, preserving their (first seen) order.
Return unique elements in sequence preserving their ( first seen ) order .
def unique(sequence: Iterable[H]) -> Iterable[H]:
    """
    Return unique elements in `sequence`, preserving their (first seen) order.
    """
    # depending on Python >= 3.6 'ordered' dict implementation detail.
    return iter(dict.fromkeys(sequence))
def unique ( sequence : Iterable [ H ] ) -> Iterable [ H ] : # depending on Python >= 3.6 'ordered' dict implementation detail. return iter ( dict . fromkeys ( sequence ) )