官术网_书友最值得收藏!

IterableFactory

trait IterableFactory[+CC[_]] is a base trait for companion objects for specific collections which provides a number of operations to create a specific collection with the type specified by the CC type constructor; this is sometimes called target-type driven building because the type of the source collection is ignored. Most of the companion objects in the collection library extend this trait, which makes it possible to use them in places where IterableFactory is expected. 

As this is the main abstraction that allows to build a collection from scratch, it is useful to know which methods it supplies. All of them return CC[A]. The following table contains a short summary:

Arguably, IterableFactory provides a lot of different possibilities to create a collection of a desired type.

主站蜘蛛池模板: 都江堰市| 甘肃省| 溧水县| 淄博市| 基隆市| 科技| 宕昌县| 刚察县| 西林县| 新安县| 连城县| 宣汉县| 黑龙江省| 文登市| 大宁县| 射洪县| 乌拉特前旗| 蛟河市| 荣成市| 宁明县| 正蓝旗| 五常市| 阳谷县| 孝昌县| 监利县| 广东省| 新密市| 阿图什市| 桦甸市| 牟定县| 曲靖市| 淳安县| 革吉县| 揭西县| 志丹县| 元朗区| 调兵山市| 高台县| 辽宁省| 苍溪县| 揭阳市|