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

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.

主站蜘蛛池模板: 贞丰县| 扬州市| 汾西县| 巧家县| 景德镇市| 青州市| 康平县| 合水县| 岳池县| 怀远县| 南投县| 商水县| 曲周县| 富平县| 广饶县| 宁夏| 岗巴县| 全南县| 肃宁县| 定远县| 托里县| 镇巴县| 天祝| 深州市| 句容市| 昌乐县| 孝昌县| 罗甸县| 皮山县| 石柱| 西乌珠穆沁旗| 稻城县| 娱乐| 新绛县| 海伦市| 永济市| 庆元县| 宁武县| 英吉沙县| 陕西省| 遂平县|