This commit is contained in:
lyuka
2014-06-06 21:31:57 +08:00
parent 05d2ae5516
commit e513b2f2ca
7 changed files with 63 additions and 1 deletions

View File

@@ -1,6 +1,16 @@
# 泛型
------
本页包含内容:
- 泛型所解决的问题
- 泛型函数
- 类型参数
- 命名类型参数
- 泛型类型
- 类型约束
- 关联类型
- Where语句
*泛型代码*可以确保你写出灵活的,可重用的函数和定义出任何你所确定好的需求的类型。你的可以写出避免重复的代码,并且用一种清晰的,抽象的方式表达出来。