Skip to content

Instantly share code, notes, and snippets.

@beta
Created December 26, 2017 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beta/a54e6e765731e257b2ba1e60cb99cdc1 to your computer and use it in GitHub Desktop.
Save beta/a54e6e765731e257b2ba1e60cb99cdc1 to your computer and use it in GitHub Desktop.
temp = set()
output = [e for e in input if e not in temp and not temp.add(e)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment