- 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.
- Expert C++
- Progressive Web Apps with React
- C#編程入門指南(上下冊)
- 深入淺出Java虛擬機:JVM原理與實戰
- Vue.js前端開發基礎與項目實戰
- React Native Cookbook
- Implementing Cisco Networking Solutions
- VMware虛擬化技術
- 快人一步:系統性能提高之道
- Linux:Embedded Development
- Python Data Structures and Algorithms
- 智能手機APP UI設計與應用任務教程
- Visual C#.NET Web應用程序設計
- Flask Web開發:基于Python的Web應用開發實戰(第2版)
- Go語言從入門到精通