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.
Collection
[
|
...
]