Last active
June 16, 2019 15:25
-
-
Save Adzz/853484e5f526e58cf74b75c2b1153917 to your computer and use it in GitHub Desktop.
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
map_1 = %{first: 1, second: 2} | |
map_2 = %{first: 3, second: 4} | |
# These just work! 🤩 | |
Zip.apply(map_1, map_2, Add) #=> %{first: 4, second: 6} | |
Zip.apply(map_1, map_2, Subtract) #=> %{first: 4, second: 6} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment