What is is “(x, y)” in Scala, and what is actually being returned?

前端 未结 2 1373
无人及你
无人及你 2021-01-22 16:56
scala> def check(a: Int, b: Int): (Int, Int) = {
      (3, 4)
      }

The returning type is (Int, Int). How is this possible? What is S

2条回答
提交回复
热议问题