10 Method definition 2

  • return keyword is optional
  • Return type is inferred (for non recursive methods and methods that don’t have an explicit return value)

Code editor is using Scalakata.com written by Guillaume Massé