类型参数

泛型函数

 

 

多个参数

使用泛型参数时候,不给类型scala也能自己判断

上边界bounds

 

 

 

下边界bounds

 

 

 

 

专门用于打包泛型数组