Created
June 29, 2015 05:46
-
-
Save lukesutton/c0620a9535694adf0a12 to your computer and use it in GitHub Desktop.
This file contains 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
internal extension Dictionary { | |
func merge(dictionary: Dictionary<Key, Value>) -> Dictionary<Key, Value> { | |
var new = self | |
for (key, value) in dictionary { | |
new[key] = value | |
} | |
return new | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment