Scala 3, Programming Scala.
println("one") println("two") // one // two // ... The output of each block of code is shown as comments. The first invocation uses braces. We see the required pattern in the second invocation; a colon followed by indented lines for the anonymous function body. It works the same way for methods on