Guest User

Untitled

a guest
Oct 20th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. let result: [String:String] = getDict()
  2. let dict = Dictionary(uniqueKeysWithValues: result.map { key, value in (Int(key), value) })
  3. // dict: [Int:Dict]
Add Comment
Please, Sign In to add comment