我刚在网上注意到这个构造:
val list = List(someCollection: _*)
什么_*意思?这是一些方法调用的语法糖吗?我的自定义类应满足哪些约束才能利用这种语法糖?
_*
scala syntactic-sugar
scala ×1
syntactic-sugar ×1