Scala 3 — Book

Summary

Language

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: