I wrote a litle swift function like this:
func compareTest(values: [[Double]]) {
if(values == [[1.0,2.0]]) {
// some code
}
}
But when I try to compile, I get an error at the comparision:
Binary operator == cannot be applied to two [[Double]] operands.
I searched in Questions around here. Most answers are that the error message is misleading and people are using the wrong type (Example Question).
Can someone help me there I wrote the types incorrect?