val t = Vector(1 to 3: _*)
返回:
scala.collection.immutable.Vector[Int] = Vector(1, 2, 3)
val t = Vector(1 to 3)
返回:
scala.collection.immutable.Vector[scala.collection.immutable.Range.Inclusive] = Vector(Range(1, 2, 3))
类型转换如何从
scala.collection.immutable.Vector[scala.collection.immutable.Range.Inclusive]
至
scala.collection.immutable.Vector[Int]
使用实现: _*