scala-collection-contrib


License

License

Categories

Categories

Scala Languages
GroupId

GroupId

org.scala-lang.modules
ArtifactId

ArtifactId

scala-collection-contrib_2.13
Last Version

Last Version

0.2.2
Release Date

Release Date

Type

Type

bundle
Description

Description

scala-collection-contrib
scala-collection-contrib
Project URL

Project URL

http://www.scala-lang.org/
Project Organization

Project Organization

org.scala-lang.modules
Source Code Management

Source Code Management

https://github.com/scala/scala-collection-contrib

Download scala-collection-contrib_2.13

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.1

test (3)

Group / Artifact Type Version
junit : junit jar 4.13.1
com.novocode : junit-interface jar 0.11
org.openjdk.jol : jol-core jar 0.14

Project Modules

There are no modules declared in this project.

scala-collection-contrib

This module provides various additions to the Scala 2.13 standard collections.

Usage

If you're using sbt, you can add the dependency as follows:

libraryDependencies += "org.scala-lang.modules" %% "scala-collection-contrib" % "0.2.2"

Here is the full Scaladoc.

New collection types

These collections are in the scala.collection package.

New operations

The new operations are provided via an implicit enrichment. You need to add the following import to make them available:

import scala.collection.decorators._

The following operations are provided:

  • BitSet: <<, >>, ...
  • mutable.BitSet: <<=, >>=, ...
  • Iterable: foldSomeLeft, lazyFoldLeft, lazyFoldRight, splitBy, ...
  • Iterator: intersperse, foldSomeLeft, lazyFoldLeft, lazyFoldRight, splitBy, ...
  • Map: fullOuterJoin, leftOuterJoin, mergeByKey, mergeByKeyWith, rightOuterJoin, zipByKey, zipByKeyWith, ...
  • Seq: intersperse, replaced, splitBy, ...

Maintenance status

This module is community-maintained. If you are interested in participating, please jump right in on issues and pull requests.

See also: scala-library-next

scala-collection-contrib's merge policy is liberal: we're happy to merge most things here, without too much review, so that people can try them out.

There is now (as of October 2020) the scala-library-next repo, which is where we decide what will actually be added to the next version of the Scala standard library. The standards for merging things there are much more conservative.

Releasing

As with other Scala standard modules, build and release infrastructure is provided by the sbt-scala-module sbt plugin.

org.scala-lang.modules

The Scala Programming Language

Versions

Version
0.2.2
0.2.1
0.2.0
0.1.0