Skip to content

Instantly share code, notes, and snippets.

@lukesutton
Created June 29, 2015 05:46
Show Gist options
  • Save lukesutton/c0620a9535694adf0a12 to your computer and use it in GitHub Desktop.
Save lukesutton/c0620a9535694adf0a12 to your computer and use it in GitHub Desktop.
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