理解scala的元组类型

scala> classOf[(Int,String)]
res10: Class[(Int, String)] = class scala.Tuple2

scala> classOf[(String,String)]
res11: Class[(String, String)] = class scala.Tuple2

scala> res10==res11
res12: Boolean = true

你可能感兴趣的:(源码故事)