- 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.
- Python程序設(shè)計(jì)教程(第2版)
- Web應(yīng)用系統(tǒng)開發(fā)實(shí)踐(C#)
- 數(shù)字媒體應(yīng)用教程
- GraphQL學(xué)習(xí)指南
- JavaFX Essentials
- Julia機(jī)器學(xué)習(xí)核心編程:人人可用的高性能科學(xué)計(jì)算
- 數(shù)據(jù)結(jié)構(gòu)習(xí)題解析與實(shí)驗(yàn)指導(dǎo)
- Learning JavaScript Data Structures and Algorithms
- Java網(wǎng)絡(luò)編程實(shí)戰(zhàn)
- Kivy Cookbook
- Building Serverless Architectures
- MATLAB GUI純代碼編寫從入門到實(shí)戰(zhàn)
- AI自動(dòng)化測試:技術(shù)原理、平臺(tái)搭建與工程實(shí)踐
- Get Your Hands Dirty on Clean Architecture
- Hands-On Dependency Injection in Go