- Learn Scala Programming
- Slava Schmidt
- 181字
- 2021-06-10 19:35:43
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, mergeByKey, mergeByKeyWith, fullOuterJoin, leftOuterJoin, and rightOUterJoing
Please consult the module documentation at https://github.com/scala/scala-collection-contrib for further details.
- SQL Server 從入門到項(xiàng)目實(shí)踐(超值版)
- Delphi程序設(shè)計(jì)基礎(chǔ):教程、實(shí)驗(yàn)、習(xí)題
- INSTANT OpenCV Starter
- Java EE 6 企業(yè)級(jí)應(yīng)用開發(fā)教程
- Learning Chef
- Instant QlikView 11 Application Development
- Python機(jī)器學(xué)習(xí):手把手教你掌握150個(gè)精彩案例(微課視頻版)
- 自制編程語言
- WordPress 4.0 Site Blueprints(Second Edition)
- Instant Nancy Web Development
- Java程序員面試筆試寶典(第2版)
- 一本書講透Java線程:原理與實(shí)踐
- C語言程序設(shè)計(jì)與應(yīng)用(第2版)
- 從零開始學(xué)Android開發(fā)
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)(第二版)