Tuple adaptation

  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) ?

1 Like