把接受多个参数的函数转变成接受单一参数的函数
def currying(x: Int)(y: Int) = x * y currying(3)(4) val curry = currying(3) _ // curry(5) def currying2(X: Int) = (y: Int) => x * y ==================== // 定义隐式值 def m2(x: Int)(implicit y: Int = 5) = x * y m2(3) // 可单独定义隐式值, 变量名随意,但不能定义多个 val implicit z = 100 m2(5)