Advertisement
Guest User

Untitled

a guest
Jul 31st, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. extension Dictionary {
  2. mutating func unionInPlace(dictionary: Dictionary<Key, Value>) {
  3. for (key, value) in dictionary {
  4. self[key] = value
  5. }
  6. }
  7. mutating func unionInPlace<S: SequenceType where S.Generator.Element == (Key, Value)>(sequence: S) {
  8. for (key, value) in sequence {
  9. self[key] = value
  10. }
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement