import java.util.Math._import java.util.{Hashmap => _, _}foo(arr:_*)t._1reduce(_ + _)val f = foo _class A {
var a: Int = _ // 给属性设置默认值的0
}case _ => // 匹配所有Array(a, b, rest@_*)math.pow(_, 2)val a_+ = 10
a+ // 错误List[_]_: Exception原文:https://www.cnblogs.com/bitbitbyte/p/12825153.html