【发布时间】:2015-11-17 12:41:12
【问题描述】:
以下语法的语法糖等价物是什么:
List[Tuple2[String, Int]] // Base
List[String Tuple2 Int] // Syntactic sugar
对于 Tuple3?例如:
List[Tuple3[String, Float, Int]] // Base
【问题讨论】:
-
看到这篇文章:stackoverflow.com/a/23490562/757071。中缀只针对两个参数
-
谢谢!我问是因为 IntelliJ 突出显示了这部分代码并说糖语法可用。因此,在阅读了@johny 发送的帖子后,我将其更改为 List[(String, Float, Int)]