I updated Xcode to 9 beta, I have fixed my code to swift 2.
Now, I have an error "'array' is unavailable: please construct an Array from your lazy sequence: Array(...)" on the following code.
var dic: [String: String] = Dictionary<String, String>(minimumCapacity: 8)
dic.values.array// error
How should I write instead of this code?
Array(dic.values)
This code is correct?
I could not find the Apple's document about LazyMapCollection. Thank you.
Like this:
var dic: [String: String] = Dictionary<String, String>(minimumCapacity: 8)
let values: [String] = [String](dic.values)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With