Multiline function literal as arguments in Scala
There are just a couple of simple syntax rules. The appendix of the spec is worth perusing. A function literal or anonymous function (6.23) will look like x => Expr or x => Block depending on whether the context is an Expr or a ResultExpr, respectively. A function application (6.6) will look like f(Expr, Expr) … Read more