Skip to content

Instantly share code, notes, and snippets.

@adammarples
Last active March 15, 2018 18:29
Show Gist options
  • Save adammarples/e885b8325d60bb1377cb199b7f0abada to your computer and use it in GitHub Desktop.
Save adammarples/e885b8325d60bb1377cb199b7f0abada to your computer and use it in GitHub Desktop.
seen = set()
items = [x for x in items 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