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

Scala Collection Contrib library

Needless to say, the standard Scala collection library is very rich and provides collections for most of the common use cases. But of course, there are some other structures that might be useful in a number of specific situations. The Scala Collection Contrib module is Scala's way of having both a stable standard library and some extra features. In a sense, this module is an incubator for the new collection types; types that prove to be useful for a broad audience will presumably be incorporated into the standard library in further Scala versions.

Currently, there are four collection types available in the module, each both mutable and immutable:

  • MultiDict
  • SortedMultiDict
  • MultiSet
  • SortedMultiSet

Also this library provides a possibility to define additional operations on existing collections via an implicit enrichment. The following import is required to make it available: 

import scala.collection.decorators._

And it delivers these methods:

  • On Seq: intersperse and replaced
  • On Map: zipByKey, join, zipByKeyWith, mergeByKeymergeByKeyWithfullOuterJoin, leftOuterJoin, and rightOUterJoing

Please consult the module documentation at https://github.com/scala/scala-collection-contrib for further details.

主站蜘蛛池模板: 蓬溪县| 台北县| 铁力市| 墨玉县| 抚州市| 巴塘县| 鄂尔多斯市| 绥阳县| 司法| 浦城县| 墨脱县| 论坛| 海盐县| 南靖县| 沂水县| 梁河县| 神木县| 开阳县| 裕民县| 神池县| 页游| 乌鲁木齐县| 滕州市| 松阳县| 平远县| 宜章县| 内黄县| 庐江县| 永年县| 通海县| 无棣县| 呼图壁县| 顺平县| 怀来县| 醴陵市| 辽中县| 台湾省| 新津县| 江都市| 上虞市| 唐河县|