Work in Progress

Scala 3 has not been released, yet. We are still in the process of writing the documentation for Scala 3. You can help us to improve the documentation.

Are you searching for the Scala 2 documentation?

Scala 3 — Book

Summary

Language

In the previous sections you saw:

  • How to use the Scala REPL
  • How to create variables with val and var
  • Some common data types
  • Control structures
  • How to model the real world using OOP and FP styles
  • How to create and use methods
  • How to use lambdas (anonymous functions) and higher-order functions
  • How to use objects for several purposes
  • An introduction to contextual abstraction

We also mentioned that if you prefer using a browser-based playground environment instead of the Scala REPL, you can also use Scastie.scala-lang.org or ScalaFiddle.io.

Scala has even more features that aren’t covered in this whirlwind tour. See the remainder of this book and the Reference documentation for many more details.

Contributors to this page: