Skip to content

Instantly share code, notes, and snippets.

@sloria
Last active December 19, 2015 04:18
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 sloria/5895758 to your computer and use it in GitHub Desktop.
Save sloria/5895758 to your computer and use it in GitHub Desktop.
item in a_set
item not in a_set
# a_set <= other
a_set.is_subset(other)
# a_set | other
a_set.union(other)
# a_set & other
a_set.intersection(other)
# a_set - other
a_set.difference(other)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment