Created
May 30, 2016 11:15
-
-
Save BigAN/53bc15c7695fcbfb6109a29f9fd36901 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def f7(seq): | |
seen = set() | |
seen_add = seen.add | |
return [x for x in seq if not (x in seen or seen_add(x))] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment