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

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.

主站蜘蛛池模板: 万载县| 逊克县| 柞水县| 云林县| 会东县| 丽江市| 安国市| 西昌市| 神木县| 乌拉特后旗| 玉溪市| 富锦市| 裕民县| 日土县| 枣庄市| 于田县| 龙州县| 莱芜市| 绿春县| 海伦市| 遂溪县| 建湖县| 嘉黎县| 师宗县| 洛扎县| 克什克腾旗| 眉山市| 齐河县| 龙口市| 永顺县| 大方县| 博乐市| 华坪县| 汪清县| 特克斯县| 怀来县| 逊克县| 临沭县| 宜宾县| 宁城县| 罗甸县|