scala tuple中的syntactic sugar

List[Tuple2[String, Int]]  // Base
List[(String, Int)]  // Syntactic sugar

List[Tuple3[String, Float, Int]]  // Base
List[(String, Float, Int)]  // Syntactic sugar

https://stackoverflow.com/questions/33757225/scala-tuple3-syntactic-sugar

posted on 2017-12-19 01:12  林枫水湾湾  阅读(353)  评论(0编辑  收藏  举报

导航