Skip to content

Instantly share code, notes, and snippets.

@beta
Created December 26, 2017 12:42
Show Gist options
  • 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