Skip to content

Instantly share code, notes, and snippets.

@Ghalko
Created August 25, 2015 19:25
Show Gist options
  • Save Ghalko/5e7031f4eab93776c1f1 to your computer and use it in GitHub Desktop.
Save Ghalko/5e7031f4eab93776c1f1 to your computer and use it in GitHub Desktop.
Just a test.
def subscriptions_users_union(emails_1, emails_2):
return {
notification:
list(
set(emails_1[notification]).union(set(emails_2[notification]))
)
for notification in constants.NOTIFICATION_TYPES.keys()
@Ghalko
Copy link
Author

Ghalko commented Aug 25, 2015

It didn't notify me either.

Even though some people are familiar with their logical/set operations, others aren't and so union is at least a bit more self documenting, or searchable, than |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment