Last active
March 15, 2018 18:29
-
-
Save adammarples/e885b8325d60bb1377cb199b7f0abada 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
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