Skip to content

Instantly share code, notes, and snippets.

@BigAN
Created May 30, 2016 11:15
Show Gist options
  • Save BigAN/53bc15c7695fcbfb6109a29f9fd36901 to your computer and use it in GitHub Desktop.
Save BigAN/53bc15c7695fcbfb6109a29f9fd36901 to your computer and use it in GitHub Desktop.
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