For  var myArray:[[String:Any]] Xcode lets me autocomplete
 myArray.first(where:{$0["name"] == "John Doe"})
but then doesn't let me compile it with an error "Cannot call value of non-function type '[String:Any]?'"
So anotherwords, swift can't figure out that I'm looking for the method first(where:_) instead of the no param version .first. What gives?
                        
Xcode was giving the wrong message for this error. it was a simple type thing. You can't compare an
Anyto aStringshould have been: