Skip to content

community-contributed additions to the Scala 2.13 collections

License

Notifications You must be signed in to change notification settings

gunjan075/scala-collection-contrib

This branch is 244 commits behind scala/scala-collection-contrib:main.

Folders and files

NameName
Last commit message
Last commit date
Feb 11, 2020
Dec 16, 2019
Jun 26, 2018
Feb 12, 2020
Jul 18, 2019
Feb 12, 2019
Jan 22, 2020
Jan 4, 2020
Feb 11, 2020
Sep 23, 2019

Repository files navigation

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.1"

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.

Releasing

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

About

community-contributed additions to the Scala 2.13 collections

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 97.9%
  • Shell 2.1%