Created
August 25, 2015 19:25
-
-
Save Ghalko/5e7031f4eab93776c1f1 to your computer and use it in GitHub Desktop.
Just a test.
This file contains hidden or 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
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
|