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

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.

主站蜘蛛池模板: 南召县| 江孜县| 石阡县| 四平市| 云林县| 沅江市| 罗城| 蓬安县| 财经| 望都县| 嵊泗县| 社旗县| 永泰县| 东方市| 浦县| 芦山县| 桂东县| 新乡市| 井陉县| 南宫市| 九龙城区| 若羌县| 武义县| 息烽县| 孝昌县| 沂水县| 德惠市| 泾阳县| 龙江县| 海阳市| 宁强县| 林西县| 高密市| 清丰县| 安陆市| 南部县| 绩溪县| 泰顺县| 富宁县| 宜川县| 湖北省|