Get array of values in dictionary

 Problem

I have a dictionary and want to get an array of all its values.



 Recipe


// Initialize the Dictionary
let dict = ["name": "John", "surname": "Doe"]
 
// Get array of values

var keys = Array(dict.values)
print(keys)
				


 Playground