- 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.
- AngularJS入門與進階
- PHP程序設計(慕課版)
- Python 深度學習
- 青少年美育趣味課堂:XMind思維導圖制作
- Hands-On JavaScript High Performance
- HTML5游戲開發案例教程
- Java深入解析:透析Java本質的36個話題
- PhoneGap Mobile Application Development Cookbook
- Active Directory with PowerShell
- Java零基礎實戰
- 零基礎學Scratch 3.0編程
- 零基礎學C語言(升級版)
- Web程序設計:ASP.NET(第2版)
- JavaScript Concurrency
- Mastering Bootstrap 4