Skip to content

Instantly share code, notes, and snippets.

@weeble
Created May 1, 2022
Embed
What would you like to do?
def pushout(s1, s2, d):
s1_transformed = {
d.get(el, el)
for el in s1
}
return s1_transformed.union(s2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment