Getting of a list of dictionaries values in Swift
Forums:
let dic: [Int : String] =
[1 : "one", 2 : "two"]
let values = dic.values
//values is ["one", "two"]
- Log in to post comments
let dic: [Int : String] =
[1 : "one", 2 : "two"]
let values = dic.values
//values is ["one", "two"]