# Scala 2.13.0 is here!

**URL:** <https://users.scala-lang.org/t/scala-2-13-0-is-here/4675>\
**Category:** Announce\
**Created:** [June 11, 2019, 5:39am UTC](https://users.scala-lang.org/t/scala-2-13-0-is-here/4675 "2019-06-11T05:39:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SethTisue](https://users.scala-lang.org/user_avatar/users.scala-lang.org/sethtisue/32/3217_2.png) [@SethTisue](https://users.scala-lang.org/u/SethTisue)\
**Post date:** [June 11, 2019, 5:39am UTC](https://users.scala-lang.org/t/scala-2-13-0-is-here/4675/1 "2019-06-11T05:39:54Z")

</div>

We are delighted to announce the availability of Scala 2.13!

The 2.13.0 release improves Scala in the following areas:

- **Collections** : Standard library collections have been overhauled for simplicity, performance, and safety. This is the centerpiece of the release.
- **Standard library** : `Future` is faster and more robust. Elsewhere, useful classes and methods have been added.
- **Language** : Literal types, partial unification, by-name implicits, more.
- **Compiler** : 5-10% faster, deterministic output, improved optimizer.

To learn more, see the [release notes](https://github.com/scala/scala/releases/tag/v2.13.0) on GitHub.

[download](https://www.scala-lang.org/download/2.13.0.html)

---

<div class="post-metadata">

**Author:** ![SethTisue](https://users.scala-lang.org/user_avatar/users.scala-lang.org/sethtisue/32/3217_2.png) [@SethTisue](https://users.scala-lang.org/u/SethTisue)\
**Post date:** [June 11, 2019, 8:59am UTC](https://users.scala-lang.org/t/scala-2-13-0-is-here/4675/2 "2019-06-11T08:59:21Z")

</div>

some bullets (from the RC1 notes) were missing from the initially published 2.13 release notes. they are now included, as follows:

simple string matcher (`s` interpolator can also be used in pattern matches), added `tapEach` , added `@unused` , added converters between functions and extractors, `PartialFunction` overloads `andThen` , `Cloneable/Serializable` are just type aliases now, `ControlThrowable` never suppresses, deprecated universal `Equiv` , deprecated `@usecase` , Symbol literals deprecated, Unicode arrows deprecated, `postfixOps` syntax disabled by default, value-discard warnings can be suppressed via type ascription to `Unit`

see the notes themselves for links to details

---

<div class="post-metadata">

**Author:** ![SethTisue](https://users.scala-lang.org/user_avatar/users.scala-lang.org/sethtisue/32/3217_2.png) [@SethTisue](https://users.scala-lang.org/u/SethTisue)\
**Post date:** [June 18, 2019, 6:00pm UTC](https://users.scala-lang.org/t/scala-2-13-0-is-here/4675/3 "2019-06-18T18:00:34Z")

</div>

A great many minor edits and improvements have been made to the release notes.

And, the following bullets are new, in the “Language changes” section, under “Adjustments”:

- Don’t assume unsound type for ident/literal patterns. ([#6502](https://github.com/scala/scala/pull/6502))
  - Matches of the form `case x@N` involve calling `equals`, so it was unsound to type `x` as `N.type`.
  - Consider rewriting as `case x:N.type`.

- Make extractor patterns null safe. ([#6485](https://github.com/scala/scala/pull/6485))
  - `null` is treated as no match.

---

<div class="post-metadata">

**Author:** ![SethTisue](https://users.scala-lang.org/user_avatar/users.scala-lang.org/sethtisue/32/3217_2.png) [@SethTisue](https://users.scala-lang.org/u/SethTisue)\
**Post date:** [June 18, 2019, 6:22pm UTC](https://users.scala-lang.org/t/scala-2-13-0-is-here/4675/4 "2019-06-18T18:22:22Z")

</div>

And, this was missing from the collections section:

- **Added [`.updatedWith`](https://www.scala-lang.org/api/2.13.0/scala/collection/immutable/Map.html#updatedWith%5BV1%3E:V%5D(key:K)(remappingFunction:Option%5BV%5D=%3EOption%5BV1%5D):CC%5BK,V1%5D) and [`updateWith`](https://www.scala-lang.org/api/2.13.0/scala/collection/mutable/Map.html#updateWith(key:K)(remappingFunction:Option%5BV%5D=%3EOption%5BV%5D):Option%5BV%5D) methods to `Map`s**
  - `updatedWith` is on `immutable.Map`, `updateWith` is on `mutable.Map`. ([#7320](https://github.com/scala/scala/pull/7320), [#7517](https://github.com/scala/scala/pull/7517))
  - These methods allow modifying a map entry based on its current value.

---

<div class="post-metadata">

**Author:** ![SethTisue](https://users.scala-lang.org/user_avatar/users.scala-lang.org/sethtisue/32/3217_2.png) [@SethTisue](https://users.scala-lang.org/u/SethTisue)\
**Post date:** [July 18, 2019, 7:20pm UTC](https://users.scala-lang.org/t/scala-2-13-0-is-here/4675/5 "2019-07-18T19:20:12Z")

</div>

[https://medium.com/@linas.m/my-favorite-new-features-of-scala-2-13-standard-library-909a89b0da4](https://medium.com/@linas.m/my-favorite-new-features-of-scala-2-13-standard-library-909a89b0da4) pointed out some missing things, now added:

- **Added in-place operations on mutable collections**
  - `filterInPlace`, `mapInPlace`, `flatMapInPlace`, and others.
  - These methods update the original collection in-place, rather than creating a new collection to hold the results.

- Added [`Stepper`](https://www.scala-lang.org/api/2.13.0/scala/collection/Stepper.html), which is like `Iterator` but supports efficient unboxed iteration, Java interop. ([#7458](https://github.com/scala/scala/pull/7458))
- **Added [`.maxOption`](https://www.scala-lang.org/api/2.13.0/scala/collection/IterableOnceOps.html#maxOption%5BB%3E:A%5D(implicitord:scala.math.Ordering%5BB%5D):Option%5BA%5D), [`.minOption`](https://www.scala-lang.org/api/2.13.0/scala/collection/IterableOnceOps.html#minOption%5BB%3E:A%5D(implicitord:scala.math.Ordering%5BB%5D):Option%5BA%5D), [`.maxByOption`](https://www.scala-lang.org/api/2.13.0/scala/collection/IterableOnceOps.html#maxByOption%5BB%5D(f:A=%3EB)(implicitcmp:scala.math.Ordering%5BB%5D):Option%5BA%5D), [`.minByOption`](https://www.scala-lang.org/api/2.13.0/scala/collection/IterableOnceOps.html#minByOption%5BB%5D(f:A=%3EB)(implicitcmp:scala.math.Ordering%5BB%5D):Option%5BA%5D)**
  - These methods safely handle the empty case. ([#6574](https://github.com/scala/scala/pull/6574))

---

<div class="post-metadata">

**Author:** ![SethTisue](https://users.scala-lang.org/user_avatar/users.scala-lang.org/sethtisue/32/3217_2.png) [@SethTisue](https://users.scala-lang.org/u/SethTisue)\
**Post date:** [July 24, 2019, 11:38pm UTC](https://users.scala-lang.org/t/scala-2-13-0-is-here/4675/6 "2019-07-24T23:38:13Z")

</div>

added to notes, in the collections section:

- **Alphanumeric method names**
  - All symbolic operators are now just aliases for descriptive alphanumeric method names.
  - Examples: `++` (alias for `concat`), `+:` (alias for `prepended`), `:+` (alias for `appended`), and so on.
