val l: List[(Int, Int)] = List((1, 2), (3, 4))
val p = l.head == ((1, 2))
I don’t understand why the code requires the double parentheses to avoid a tuple adaptation warning since == is a single argument method anyway. What’s ambiguous about l.head == (1, 2) ?
Seems a little sloppy from the parser, but it makes sense. I vaguely remember reading something about restricting infix calls to single-argument methods (which seems reasonable), but I don’t remember where (maybe Scala 3?)