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



There’s even more to know about methods, including how to:

  • Call methods on superclasses
  • Define and use by-name parameters
  • Write a method that takes a function parameter
  • Create inline methods
  • Handle exceptions
  • Use vararg input parameters
  • Write methods that have multiple parameter groups (partially-applied functions)
  • Create methods that have generic type parameters

See the Reference documentation for more details on these features.

Contributors to this page: