How to match two arrays and update one array
I have two arrays of Car objects
struct Car {
var id: Int
var name: String
var location: CLLocation
}
oldArr:[Car] = [a,b,c]
newArr:[Car] = [b,a,c]
Now I want to update location properties of the oldArr from newArr
Currently …