What To Think When You See That Opening Curly Brace (Scala 3 Video)
Briefly

In Scala, the expression can represent an anonymous class or a function with a by-name parameter. This makes learning Scala tricky without understanding these concepts.
Further examples clarify that depending on the parameters, FOO could be an anonymous class or a function that accepts different types of parameters.
Read at Alvinalexander
[
|
]