本文最后更新于 2021-08-05 11:42:59
Tuple
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| object TupleDemo { def main(args: Array[String]): Unit = { val tuple1 = Tuple2(1,"11") println(tuple1._1) println(tuple1._2) val tuple2 = Tuple3("1","2","3")
val tuple3 = (1,2,3) val tuple4 = 1-> 2
} }
|
15Tuple
https://jiajun.xyz/2020/11/16/scala/15Tuple/