Template functions are always specified with fully parameterized types.
模板函数总是用完全参数化的类型指定的。
Syntax error, parameterized types are only available if source level is 5.0.
语法错误,泛型只有在5.0以上的版本才支持。
So, to avoid ambiguities, Scala USES square brackets instead for parameterized types.
所以,为了避免二义性,Scala使用了方括号来声明参数类型。
应用推荐