I'm trying to compare two object arrays like this:
if oneObjectArray != anotherObjectArray {
// ... do stuff
}
However I get the following less than helpful compiler error:
Binary operator '!=' cannot be applied to operands of type '[MyModelObject]' and '[(MyModelObject)]'`
The compiler error points to the first operand in the equality check.
anotherObjectArray?==is not what I want. However, I still want to understand this specific compiler error, so I'm prepared for next time I see it. Both arrays are declared as[MyModelObject], however one is declared constant vialetand the other isvar.==and!=is exactly what you want :D Have you madeMyObectModelEquatable? If not then this is probably what your problem is. (If you're not sure then you haven't).