I want to enumerate my array of Any objects, with access to index of element. However, swift throw an error:
Type '() -> EnumeratedSequence<[Any]>' does not conform to protocol 'Sequence'`
My code is:
var arrValues : [Any]!
for (index, ob) in arrValues.enumerated() {
print("\(index): '\(ob)'")
}
How to fix that?
