|
|
|
|
|
by AzzieElbab
1393 days ago
|
|
That is a curried parameter in {}. Those braces are not for scoping. They basically define a lambda. You can probably use () instead you can also use import language.experimental.fewerBraces with nightly builds to write code like this List(1,2,3).map:
c => ... |
|
> You can probably use () instead
I would rather not as using braces for the final argument has been the Scala idiom for a long time now.